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

fix: Automatically recover expired sessions. #31

Merged
merged 1 commit into from
Dec 13, 2020

Conversation

thorwebdev
Copy link
Member

What kind of change does this PR introduce?

Fixes #27

  • Automatically recover expired sessions on page load using the refresh token

@thorwebdev thorwebdev force-pushed the fix/auto-recover-expired-session branch from 033bc97 to a9718e9 Compare December 12, 2020 10:27
@kiwicopple
Copy link
Member

Woo! Thanks Thor

@kiwicopple kiwicopple merged commit dc6cf10 into master Dec 13, 2020
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.9.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@vbylen
Copy link

vbylen commented Mar 30, 2021

Is there a way to do this for page focus instead of page reload?

@kiwicopple
Copy link
Member

That's a good idea - it must be possible since swr does something similar: https://swr.vercel.app/

Perhaps we can discuss in a new issue?

@vbylen
Copy link

vbylen commented Mar 31, 2021

#70 made a new issue

@kiwicopple
Copy link
Member

Thanks @10000multiplier 🙏

@kiwicopple kiwicopple deleted the fix/auto-recover-expired-session branch March 31, 2021 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Token refresh does not work
3 participants