Bug report
Describe the bug
When using SupaEmailAuth, the onToggleRecoverPassword callback is correctly invoked with true after tapping “Forgot password”. However, tapping “Back to sign in” does not trigger onToggleRecoverPassword with false. As a result, the parent widget remains in the “Recover Password” state (e.g., the screen title or other UI driven by this callback stays stuck on password reset).
To Reproduce
SupaEmailAuth(
onToggleSignIn: (isSignIn) {
debugPrint('isSignIn: $isSignIn');
},
onToggleRecoverPassword: (isRecoverPassword) {
debugPrint('isRecoverPassword: $isRecoverPassword');
}
);
Steps to reproduce the behavior, please provide code snippets or a repository:
- Render
SupaEmailAuth with both onToggleSignIn and onToggleRecoverPassword callbacks and drive parent UI state based on them.
- Tap “Forgot password” to enter the password recovery flow.
- Observe
onToggleRecoverPassword (true) is called.
- Tap “Back to sign in”.
- Observe
onToggleRecoverPassword (false) is not called.
Expected behavior
Tapping “Back to sign in” should invoke onToggleRecoverPassword(false), allowing the parent widget to update its UI and exit the password recovery state.