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

feat: no persist of session with no changes in _recoverAndRefresh #711

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

hf
Copy link
Contributor

@hf hf commented Jun 27, 2023

In _recoverAndRefresh() if the session was valid and not expired by the margin, it was loading and then persisting which could have overridden a new session value saved by another tab in local storage.

This explains some errors where a refresh token is used again after a long time.

src/GoTrueClient.ts Outdated Show resolved Hide resolved
Co-authored-by: Joel Lee <[email protected]>
@hf hf merged commit 964f2fd into master Jun 27, 2023
1 check passed
@hf hf deleted the hf/no-persist-after-load branch June 27, 2023 11:38
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.34.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants