From d4ed6348ee598209698e435fe1125a27f13c216d Mon Sep 17 00:00:00 2001 From: Denis Arnst Date: Thu, 25 Jan 2024 11:20:44 +0100 Subject: [PATCH] Auth: Store auth_method longer Its not unrealistic that someone keeps being logged into the app for more than a year if not stored longer logout process might not work anymore --- server/Auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/Auth.js b/server/Auth.js index 4a06cb12..c19f4a77 100644 --- a/server/Auth.js +++ b/server/Auth.js @@ -221,8 +221,8 @@ class Auth { res.cookie('auth_cb', callback, { maxAge: TWO_MINUTES, httpOnly: true }) } - // Store the authentication method for a year - res.cookie('auth_method', authMethod, { maxAge: 1000 * 60 * 60 * 24 * 365, httpOnly: true }) + // Store the authentication method for long + res.cookie('auth_method', authMethod, { maxAge: 1000 * 60 * 60 * 24 * 365 * 10, httpOnly: true }) } /**