flutter-auth-ui icon indicating copy to clipboard operation
flutter-auth-ui copied to clipboard

Incomplete "Forgot your password" feature

Open henry2man opened this issue 1 year ago • 0 comments

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:

  1. Display the widget
  2. Click on 'Forgot your password?'
  3. Write the user email
  4. Click on 'Send password reset email'
  5. Visually nothing happens (command is sent under the hoods)
  6. Click on 'Back to sign in'
  7. 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

Captura de pantalla 2024-04-18 a las 11 19 29

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 ?

henry2man avatar Apr 18 '24 09:04 henry2man