resetPasswordForEmail()

Sends a reset request to an email address.

redirectTo is used to open the app via deeplink when user opens the password reset email.

1await supabase.auth.resetPasswordForEmail(
2  'sample@email.com',
3  redirectTo: kIsWeb ? null : 'io.supabase.flutter://reset-callback/',
4);

Notes#

Sends a password reset request to an email address. When the user clicks the reset link in the email they are redirected back to your application. Prompt the user for a new password and call auth.updateUser():

1await supabase.auth.resetPasswordForEmail(
2  'sample@email.com',
3  redirectTo: kIsWeb ? null : 'io.supabase.flutter://reset-callback/',
4);

Examples#

Reset password for Flutter#

redirectTo is used to open the app via deeplink when user opens the password reset email.

1await supabase.auth.resetPasswordForEmail(
2  'sample@email.com',
3  redirectTo: kIsWeb ? null : 'io.supabase.flutter://reset-callback/',
4);