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

Recover expired requests on page focus #70

Closed
vbylen opened this issue Mar 31, 2021 · 2 comments
Closed

Recover expired requests on page focus #70

vbylen opened this issue Mar 31, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@vbylen
Copy link

vbylen commented Mar 31, 2021

Feature request

Is your feature request related to a problem? Please describe.

JWT tokens expire frequently.

Requiring the user to reload the page to refresh the JWT token leads to a poor user experience.

Describe the solution you'd like

  • Revalidate the JWT token on page focus
  • Revalidate the JWT token on network recovery

SWR's fetching strategy could act as an inspiration.

Additional context

The refresh token on page reload feature was implemented by @thorwebdev in #31.

Perhaps you could chime in? 😄

@vbylen vbylen added the enhancement New feature or request label Mar 31, 2021
@vbylen
Copy link
Author

vbylen commented Mar 31, 2021

@kiwicopple

@vbylen
Copy link
Author

vbylen commented Apr 13, 2021

This issue may be closed due to @phamhieu's great work!

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

No branches or pull requests

2 participants