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

How can I extend token expiry in active state? #79

Open
pranoysp opened this issue Jan 18, 2018 · 2 comments
Open

How can I extend token expiry in active state? #79

pranoysp opened this issue Jan 18, 2018 · 2 comments

Comments

@pranoysp
Copy link

pranoysp commented Jan 18, 2018

I need to update token expiry time when user keep on calling APIs.
If the user inactive for some set of time/days, then only token expiry should work.
I haven't seen any method to extend token expiry in the given jwt-simple npm framework.

@Sangrene
Copy link

Store datetime in the token payload ? That's the easiest way to manipulate it.

@hypervtechnics
Copy link

You'd better go with session tokens for this functionality.

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

3 participants