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

refresh expired token #46

Open
TropicalSunshine opened this issue Dec 28, 2020 · 1 comment
Open

refresh expired token #46

TropicalSunshine opened this issue Dec 28, 2020 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@TropicalSunshine
Copy link
Owner

image

token needs to be refreshed when expired if the user is logged in for a substantial amount of time.

@TropicalSunshine TropicalSunshine added bug Something isn't working enhancement New feature or request labels Dec 28, 2020
@TropicalSunshine
Copy link
Owner Author

TropicalSunshine commented Jan 3, 2021

approaches:

https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/

https://stackoverflow.com/questions/41614259/jwt-authentication-refresh-token-implementation

options:

  1. send refresh token in every request, if token is expired then use refresh token
  2. keep refresh token on client side, and track timestamp for token creation. Client sends a refresh token request when it deems the token has expired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant