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: don't call removeSession prematurely #915

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

kangmingtay
Copy link
Member

@kangmingtay kangmingtay commented Jun 5, 2024

What kind of change does this PR introduce?

Copy link
Contributor

@hf hf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think generally fine, though I think we need to emit the SIGNED_OUT event in this case (if there was a session previously) and right after SIGNED_IN.

But for now, let's just document this here: https://supabase.com/docs/reference/javascript/auth-onauthstatechange

@kangmingtay kangmingtay merged commit e0dc518 into master Jun 7, 2024
7 checks passed
@kangmingtay kangmingtay deleted the km/remove-remove-session branch June 7, 2024 09:54
hf pushed a commit that referenced this pull request Jun 17, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.64.3](v2.64.2...v2.64.3)
(2024-06-17)


### Bug Fixes

* don't call removeSession prematurely
([#915](#915))
([e0dc518](e0dc518))
* limit proxy session warning to once per client instance
([#900](#900))
([4ecfdda](4ecfdda))
* patch release workflow
([#922](#922))
([f84fb50](f84fb50))
* type errors in verifyOtp
([#918](#918))
([dcd0b9b](dcd0b9b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

Functions that call _removeSession internally do not trigger SIGNED_OUT event when the function fails
3 participants