mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
feat: Ajout d'une fonction de logout
This commit is contained in:
@ -40,7 +40,12 @@ const options = {
|
||||
})
|
||||
],
|
||||
session: {
|
||||
jwt: true
|
||||
jwt: true,
|
||||
maxAge: 24 * 60 * 60, // 1 day in seconds
|
||||
updateAge: 24 * 60 * 60 // Update session every day
|
||||
},
|
||||
jwt: {
|
||||
maxAge: 24 * 60 * 60 // 1 day in seconds
|
||||
},
|
||||
callbacks: {
|
||||
async jwt({ token, user }) {
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
import { signOut } from 'next-auth/react';
|
||||
|
||||
export default function SignOut() {
|
||||
return (
|
||||
<button onClick={() => signOut({ callbackUrl: '/' })}>
|
||||
Sign out
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user