From 34a7c2b244f86957781dcd5339b76598afe031cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Fri, 2 Oct 2020 16:34:16 +0200 Subject: [PATCH] fix: default maxAge for session set to two days Unleash will now extend the session once every hour as long as the user keeps the browser tab open within two days. --- lib/options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/options.js b/lib/options.js index c1a55f556b..99b6722f59 100644 --- a/lib/options.js +++ b/lib/options.js @@ -7,7 +7,7 @@ const { publicFolder } = require('unleash-frontend'); const { defaultLogProvider, validateLogProvider } = require('./logger'); const version = require('./util/version'); -const THIRTY_DAYS = 30 * 24 * 60 * 60 * 1000; +const TWO_DAYS = 2 * 24 * 60 * 60 * 1000; function defaultDatabaseUrl() { if (process.env.DATABASE_URL_FILE) { @@ -44,7 +44,7 @@ function defaultOptions() { extendedPermissions: false, publicFolder, enableRequestLogger: false, - sessionAge: THIRTY_DAYS, + sessionAge: TWO_DAYS, adminAuthentication: process.env.ADMIN_AUTHENTICATION || 'unsecure', ui: {}, importFile: undefined,