fix: cookie expiration date same as the token

This commit is contained in:
Maël Gangloff
2024-08-17 20:33:37 +02:00
parent 5a18fbfaa2
commit 2ac9849f86
3 changed files with 5 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ class JWTAuthenticator implements AuthenticationSuccessHandlerInterface
new Cookie(
'BEARER',
$jwt,
time() + 7200, // expiration
time() + 604800, // expiration
'/',
null,
true,

View File

@@ -75,7 +75,7 @@ class OAuthAuthenticator extends OAuth2Authenticator implements AuthenticationEn
new Cookie(
'BEARER',
$token,
time() + 7200, // expiration
time() + 604800, // expiration
'/',
null,
true,