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.
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, theSIGNED_IN
auth event is emitted instead ofPASSWORD_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. https://github.com/supabase/supabase-flutter/pull/774