session correction logout 2
This commit is contained in:
parent
2ca2905f5c
commit
8efc393aac
@ -349,7 +349,12 @@ 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={async () => {
|
||||||
|
await signOut({
|
||||||
|
callbackUrl: '/signin',
|
||||||
|
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