-
-
Notifications
You must be signed in to change notification settings - Fork 43
Allow to set a default expiration value on the generated token #52
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
Conversation
e6dfd98 to
a83cfa8
Compare
|
👍 For the record, I think this is the only standard claim that should be set with a good default by this library. |
|
I changed how the
|
…ny#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
Generating JWT without expiration is a bad security practice. This PR adds the ability to set a default lifetime for generated tokens using the new
Authorizationutil.