mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: cookie expiration date same as the token
This commit is contained in:
@@ -43,7 +43,7 @@ class JWTAuthenticator implements AuthenticationSuccessHandlerInterface
|
||||
new Cookie(
|
||||
'BEARER',
|
||||
$jwt,
|
||||
time() + 7200, // expiration
|
||||
time() + 604800, // expiration
|
||||
'/',
|
||||
null,
|
||||
true,
|
||||
|
||||
@@ -75,7 +75,7 @@ class OAuthAuthenticator extends OAuth2Authenticator implements AuthenticationEn
|
||||
new Cookie(
|
||||
'BEARER',
|
||||
$token,
|
||||
time() + 7200, // expiration
|
||||
time() + 604800, // expiration
|
||||
'/',
|
||||
null,
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user