session correction logout 3 rest 2
This commit is contained in:
parent
bf63b48c28
commit
8c824b4308
@ -349,7 +349,10 @@ export function MainNav() {
|
|||||||
))}
|
))}
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
className="text-white/80 hover:text-white hover:bg-black/50 cursor-pointer"
|
className="text-white/80 hover:text-white hover:bg-black/50 cursor-pointer"
|
||||||
onClick={() => signOut()}
|
onClick={() => signOut({
|
||||||
|
callbackUrl: `${process.env.NEXT_PUBLIC_KEYCLOAK_ISSUER}/protocol/openid-connect/logout?post_logout_redirect_uri=${encodeURIComponent(window.location.origin)}`,
|
||||||
|
redirect: true
|
||||||
|
})}
|
||||||
>
|
>
|
||||||
<LogOut className="mr-2 h-4 w-4" />
|
<LogOut className="mr-2 h-4 w-4" />
|
||||||
<span>Déconnexion</span>
|
<span>Déconnexion</span>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user