diff --git a/client/src/app/api/auth/[...nextauth]/options.ts b/client/src/app/api/auth/[...nextauth]/options.ts index e5d2a6b..0c72fb0 100644 --- a/client/src/app/api/auth/[...nextauth]/options.ts +++ b/client/src/app/api/auth/[...nextauth]/options.ts @@ -55,7 +55,9 @@ export const authOptions: AuthOptions = { if (sessionToken) { const now = new Date().getTime(); - const exp = decoded.iat ? decoded.iat * 1000 + SESSION_MAX_AGE * 1000 : 0; + const exp = decoded.iat + ? decoded.iat * 1000 + SESSION_MAX_AGE * 1000 + : SESSION_MAX_AGE * 1000; if (now < exp) { return {