Dynamic max age value #5058
Unanswered
Barresider
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I want to give the user an optional way to extend the default jwt session expiration, so basically a "Keep me signed in" button. So I need to set the maxAge for the jwt token dynamically.
My code looks like this:
Currently it throws the error "'JWTExpired: "exp" claim timestamp check failed\n'". I can't figure out where to catch that error. Or is there even a better way of implementing this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions