correzione a Auth/config
All checks were successful
Deploy to VPS / build (push) Successful in 17s
Deploy to VPS / deploy (push) Successful in 21s

This commit is contained in:
AV77web 2026-06-09 14:15:05 +02:00
parent d6c7451121
commit 8f6d7e68d8

View file

@ -20,7 +20,8 @@ export const authConfig: ExpressAuthConfig = {
secret: process.env.AUTH_SECRET,
useSecureCookies: isProduction,
session: { strategy: "jwt" },
pages: { signIn: "/login" },
// Il frontend gestisce login/registrazione: niente redirect verso pagine backend
pages: { signIn: "/api/auth/error" },
cookies: isProduction
? {
sessionToken: { options: crossOriginCookieOptions },