File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ class SupaEmailAuth extends StatefulWidget {
57
57
/// confirmation link after signing up.
58
58
final String ? redirectTo;
59
59
60
+ /// The URL to redirect the user to when clicking on the link on the
61
+ /// confirmation link from a reset password confirm email.
62
+ final String ? redirectToResetPwd;
63
+
60
64
/// Callback for the user to complete a sign in.
61
65
final void Function (AuthResponse response) onSignInComplete;
62
66
@@ -87,6 +91,7 @@ class SupaEmailAuth extends StatefulWidget {
87
91
const SupaEmailAuth ({
88
92
Key ? key,
89
93
this .redirectTo,
94
+ this .redirectToResetPwd,
90
95
required this .onSignInComplete,
91
96
required this .onSignUpComplete,
92
97
this .onPasswordResetEmailSent,
@@ -295,7 +300,7 @@ class _SupaEmailAuthState extends State<SupaEmailAuth> {
295
300
final email = _emailController.text.trim ();
296
301
await supabase.auth.resetPasswordForEmail (
297
302
email,
298
- redirectTo: widget.redirectTo ,
303
+ redirectTo: widget.redirectToResetPwd ,
299
304
);
300
305
widget.onPasswordResetEmailSent? .call ();
301
306
// FIX use_build_context_synchronously
You can’t perform that action at this time.
0 commit comments