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
This commit is contained in:
Denis Arnst 2024-01-25 11:20:44 +01:00
parent f12ac685e8
commit d4ed6348ee

View File

@ -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 })
}
/**