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

Add a "refresh token automatically" function #13

Closed
JasonLaw1994 opened this issue Mar 5, 2019 · 0 comments
Closed

Add a "refresh token automatically" function #13

JasonLaw1994 opened this issue Mar 5, 2019 · 0 comments

Comments

@JasonLaw1994
Copy link
Contributor

JasonLaw1994 commented Mar 5, 2019

Right now, we check whether we should refresh token or not when "loading", but this can cause a problem.

For example, if "loading" happen at 15 minutes before access token is expired, we don't refresh token (we refresh token 10 minutes before expiration). If I stay at the website for more than 15 minutes, the access token will be expired. Of course, the user can refresh token by reloading page, but I think it's better if the application can refresh token automatically when it find out that the access token is expired.

@JasonLaw1994 JasonLaw1994 changed the title Add an "Automatically refresh token" function Add a "refresh token automatically" function Mar 5, 2019
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

1 participant