diff --git a/lib/auth.js b/lib/auth.js index fc305431..0fa2da4c 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -19,6 +19,7 @@ const cookieOptions = (args) => ({ sameSite: 'lax', // default expiration for next-auth JWTs is in 30 days expires: datePivot(new Date(), { days: 30 }), + maxAge: 2592000, // 30 days in seconds ...args })