From 8c824b4308ec570098000a75b6d1134491859568 Mon Sep 17 00:00:00 2001 From: alma Date: Fri, 18 Apr 2025 12:32:09 +0200 Subject: [PATCH] session correction logout 3 rest 2 --- components/main-nav.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/main-nav.tsx b/components/main-nav.tsx index bcc5bc7a..26ab5d5a 100644 --- a/components/main-nav.tsx +++ b/components/main-nav.tsx @@ -349,7 +349,10 @@ export function MainNav() { ))} signOut()} + onClick={() => signOut({ + callbackUrl: `${process.env.NEXT_PUBLIC_KEYCLOAK_ISSUER}/protocol/openid-connect/logout?post_logout_redirect_uri=${encodeURIComponent(window.location.origin)}`, + redirect: true + })} > Déconnexion