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 to refresh the expiration time of token in every request #209

Closed
rssandy1991 opened this issue Nov 4, 2016 · 5 comments
Closed

how to refresh the expiration time of token in every request #209

rssandy1991 opened this issue Nov 4, 2016 · 5 comments

Comments

@rssandy1991
Copy link

No description provided.

@asabzposh
Copy link

Create a new token with the updated "expiresIn" value. And send back that token.

@shai32
Copy link

shai32 commented May 13, 2017

is it not a bad performance to do that?
creating a token can be time consuming for each request?
do I need to duplicate the code on every handler I have in my server?

@roytz
Copy link

roytz commented May 13, 2017

@asabzposh , is there a way doing that within the validate function?

@bitcloud
Copy link
Contributor

check #237 for an possible solution.

@nelsonic
Copy link
Member

nelsonic commented Mar 8, 2021

indeed this can easily be done in the validate function.
As noted by @bitcloud, please see #237 for more detail.
Thanks.

@nelsonic nelsonic closed this as completed Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants