From 24e5e8e8b1183b1c23ff366329594802b5b008a2 Mon Sep 17 00:00:00 2001 From: Neeraj Date: Thu, 17 Oct 2024 17:05:58 +0530 Subject: [PATCH] Increase session expiry time --- packages/backend/src/server.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/server.ts b/packages/backend/src/server.ts index 0c10e009..16b35886 100644 --- a/packages/backend/src/server.ts +++ b/packages/backend/src/server.ts @@ -86,8 +86,7 @@ export const createAndStartServer = async ( saveUninitialized: true, cookie: { secure: new URL(appOriginUrl).protocol === 'https:', - // 23 hours (less than 24 hours to avoid sessionSigs expiration issues) - maxAge: 23 * 60 * 60 * 1000, + maxAge: 30 * 24 * 60 * 60 * 1000, domain: domain || undefined, sameSite: new URL(appOriginUrl).protocol === 'https:' ? 'none' : 'lax', }