From a83783f008702db5d8220e9883260511a64c2d7b Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 20 Mar 2025 16:38:13 -0500 Subject: [PATCH] Fix missing max-age cookie option (#2000) --- lib/auth.js | 1 + 1 file changed, 1 insertion(+) 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 })