diff --git a/frontend/src/auth/authService.ts b/frontend/src/auth/authService.ts index c63b253..45d3d72 100644 --- a/frontend/src/auth/authService.ts +++ b/frontend/src/auth/authService.ts @@ -15,7 +15,10 @@ export const login = async (): Promise => { export const logout = async (): Promise => { try { - await userManager.signoutRedirect(); + const user = await userManager.getUser(); + await userManager.signoutRedirect({ + id_token_hint: user?.id_token, + }); } catch (error) { console.error('Logout redirect failed:', error); throw parseOidcError(error);