From 1fafd84d2f796f934744ca7bca660cef968ca02c Mon Sep 17 00:00:00 2001 From: Christophe Jossart Date: Tue, 8 Oct 2024 12:50:15 +0200 Subject: [PATCH] chore: set the session to 12h --- apps/preview/server/utils/oAuth2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/preview/server/utils/oAuth2.ts b/apps/preview/server/utils/oAuth2.ts index 4fe63e400..be3cfa497 100644 --- a/apps/preview/server/utils/oAuth2.ts +++ b/apps/preview/server/utils/oAuth2.ts @@ -22,7 +22,7 @@ declare module 'express-session' { } // In seconds -export const SESSION_MAX_AGE = 300; +export const SESSION_MAX_AGE = 60 * 60 * 12; const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY || crypto.randomBytes(32).toString('hex');