Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token TTL Unlimited #340

Open
EvilSpartans opened this issue Sep 15, 2022 · 1 comment
Open

Token TTL Unlimited #340

EvilSpartans opened this issue Sep 15, 2022 · 1 comment

Comments

@EvilSpartans
Copy link

Hello, is it possible to never expire the refresh token ? Because I'm using this to prevent lexik jwt from expiration, and if the refresh token expire too so I will still have a problem. How can I configure my file so that the refresh token never expires ? Thanks !

gesdinet_jwt_refresh_token: ttl: 2592000 refresh_token_class: App\Entity\RefreshToken

@webignition
Copy link
Contributor

It seems like you're saying that you'd like a non-expiring refresh token to allow you to ensure that a token created with lexik/jwt-authentication-bundle never expires.

As of lexik/jwt-authentication-bundle:2.1.6 you should be able to configure things such that generated tokens never expire. Is this what you need?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants