LexikJWTAuthenticationBundle icon indicating copy to clipboard operation
LexikJWTAuthenticationBundle copied to clipboard

Infinite token ttl not working

Open mervit opened this issue 3 years ago • 2 comments

Since last update, parameter token_ttl with value null for infinite expiration no longer working. With this option set to null is library not able to verify recieved token by prive key and token is marked as invalid.

Last announcement about this possibility is mentioned in this comment https://github.com/lexik/LexikJWTAuthenticationBundle/issues/250#issuecomment-298667342 .

Please fix this issue or update documentation.

Thank you

mervit avatar Sep 06 '22 18:09 mervit

I think you'll also need to set allow_no_expiration: true in your config/packages/lexik_jwt_authentication.yaml file.

migmolrod avatar Sep 18 '22 16:09 migmolrod

FYI, using allow_no_expiration: true, you don't need any token_ttl line in your config.

Documentation still need to be updated to add the existence of allow_no_expiration though

etshy avatar Oct 03 '23 09:10 etshy