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: Emit password recovery event from verifyOtp when otp type is recovery #829

Merged
merged 1 commit into from Dec 29, 2023

Conversation

dshukertjr
Copy link
Member

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Currently when the user goes through the password recovery flow via OTP and calls the verifyOtp() method, the SIGNED_IN auth event is emitted instead of PASSWORD_RECOVERY event.

What is the new behavior?

When the user goes through the password recovery flow using email OTP, the PASSWORD_RECOVERY event is emitted.

Additional context

A Flutter SDK user reported this, and thought it probably makes sense to bring it to the JS client as well. supabase/supabase-flutter#774

@kangmingtay kangmingtay merged commit 78abe52 into master Dec 29, 2023
2 checks passed
@kangmingtay kangmingtay deleted the fix/verifyOtp branch December 29, 2023 01:08
Copy link
Contributor

🎉 This PR is included in version 2.62.1 🎉

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.

None yet

2 participants