From 25cae9b006dd99442c55d71437e17ae609aeb2a2 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 7 Apr 2025 22:00:37 +0200 Subject: [PATCH] Perform more proper sign out operation --- geneit_app/src/widgets/BaseAuthenticatedPage.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/geneit_app/src/widgets/BaseAuthenticatedPage.tsx b/geneit_app/src/widgets/BaseAuthenticatedPage.tsx index ff75c81..4b9cf84 100644 --- a/geneit_app/src/widgets/BaseAuthenticatedPage.tsx +++ b/geneit_app/src/widgets/BaseAuthenticatedPage.tsx @@ -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); };