From 1eed16cd264532f3d5cf0174f2e4f547e631a00b Mon Sep 17 00:00:00 2001 From: Jacob Sommer Date: Tue, 28 Nov 2023 00:46:57 -0800 Subject: [PATCH] Increase session length to 30 days --- api/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/app.ts b/api/src/app.ts index 6e42ce8c..d09a8c1a 100644 --- a/api/src/app.ts +++ b/api/src/app.ts @@ -49,7 +49,7 @@ if (process.env.MONGO_URL) { secret: process.env.SESSION_SECRET, resave: false, saveUninitialized: false, - cookie: { maxAge: 1000 * 60 * 60 * 24 }, + cookie: { maxAge: 30 * 86400 * 1000 }, store: store, })); app.use(passport.initialize());