Perform more proper sign out operation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fdd11e7eae
commit
25cae9b006
@ -43,9 +43,13 @@ export function BaseAuthenticatedPage(): React.ReactElement {
|
|||||||
setAnchorEl(null);
|
setAnchorEl(null);
|
||||||
};
|
};
|
||||||
|
|
||||||
const signOut = () => {
|
const signOut = async () => {
|
||||||
handleCloseMenu();
|
handleCloseMenu();
|
||||||
AuthApi.SignOut();
|
try {
|
||||||
|
await AuthApi.SignOut();
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
navigate("/");
|
navigate("/");
|
||||||
auth.setSignedIn(false);
|
auth.setSignedIn(false);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user