diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index bb3ffec..bff2533 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -182,9 +182,10 @@ function NavBar() { const { instance, accounts } = useMsal(); const user = accounts[0]; - function handleLogout() { - // Sign out from the app only — does not sign out of the Microsoft account - instance.logoutRedirect({ onRedirectNavigate: () => false }); + async function handleLogout() { + // Clear local MSAL cache only — does not sign out of the Microsoft account + await instance.clearCache(); + window.location.href = '/gsb'; } return (