Perform more proper sign out operation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2025-04-07 22:00:37 +02:00
parent fdd11e7eae
commit 25cae9b006

View File

@ -43,9 +43,13 @@ export function BaseAuthenticatedPage(): React.ReactElement {
setAnchorEl(null);
};
const signOut = () => {
const signOut = async () => {
handleCloseMenu();
AuthApi.SignOut();
try {
await AuthApi.SignOut();
} catch (e) {
console.error(e);
}
navigate("/");
auth.setSignedIn(false);
};