flutter-auth-ui
flutter-auth-ui copied to clipboard
Incomplete "Forgot your password" feature
Bug report
Describe the bug
When you try to reset the password the form is unreactive. If you go back to the sign in page, the sign in button is locked and "spinning"
To Reproduce
Just setup Supabase as per docs:
await Supabase.initialize(
url: <URL>,
anonKey: <AnonKey>,
);
and place in your app a simple auth widget:
SupaEmailAuth(
onSignInComplete: (response) {
// do something, for example: navigate('home');
},
onSignUpComplete: (response) {
// do something, for example: navigate("wait_for_email");
},
),
and make sure that a user exists in the database.
Then:
- Display the widget
- Click on 'Forgot your password?'
- Write the user email
- Click on 'Send password reset email'
- Visually nothing happens (command is sent under the hoods)
- Click on 'Back to sign in'
- The sign in button is disabled an shows an spinner
Expected behavior
The password reset command is sent, an snackbar is shown and the widget displays the Sign In form again.
Screenshots
System information
- OS: macOS Sonoma
- Platform: macOS / Web+Chrome
- supabase_flutter: ^2.5.1
- supabase_auth_ui: ^0.4.4
Additional context
Maybe related with #36 ?