You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow to set a default expiration value on the generated token (#52)
* Allow to set a default expiration value on the generated token
* move the logic to the token factory
* cs
* Set cookie expiration
* more advanced logic
* cs
* fix tests
* fix tests
* fix gha
* try to fix gha
* changelog
* typo
* nico's review
* fix tests
* fix fallback
* simplify: we can modify the cookie expiration time after
* fix
* @param int|null $cookieLifetime in seconds, 0 for the current session, null to default to the value of "session.cookie_lifetime" or 3600 if "session.cookie_lifetime" is set to 0. The "exp" field of the JWT will be set accordingly if not set explicitly, defaults to 1h in case of session cookies.
* @param int|null $jwtLifetime If not null, an "exp" claim is always set to now + $jwtLifetime (in seconds), defaults to "session.cookie_lifetime" or 3600 if "session.cookie_lifetime" is set to 0.
thrownew \LogicException('You cannot use "Symfony\Component\Mercure\Token\LcobucciFactory" as the "lcobucci/jwt" package is not installed. Try running "composer require lcobucci/jwt".');
@@ -53,6 +57,7 @@ public function __construct(string $secret, string $algorithm = 'hmac.sha256')
0 commit comments