correction du token lors du login

This commit is contained in:
2026-03-04 15:12:47 +01:00
parent a03675ed7f
commit c8fffece3e
9 changed files with 82 additions and 35 deletions

View File

@@ -37,7 +37,9 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
],
session: {
strategy: 'jwt',
maxAge: 30 * 24 * 60 * 60, // 30 days
},
secret: process.env.AUTH_SECRET || 'fallback_secret_for_development_purposes_only',
callbacks: {
async jwt({ token, user }) {
if (user) {