Skip to content

Commit 36bd5fa

Browse files
domheldshukertjr
andauthored
Add redirectTo for email password reset (#83)
* Add redirectTo for email password reset * format document --------- Co-authored-by: dshukertjr <[email protected]>
1 parent b3454fa commit 36bd5fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/components/supa_email_auth.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,10 @@ class _SupaEmailAuthState extends State<SupaEmailAuth> {
293293
});
294294

295295
final email = _emailController.text.trim();
296-
await supabase.auth.resetPasswordForEmail(email);
296+
await supabase.auth.resetPasswordForEmail(
297+
email,
298+
redirectTo: widget.redirectTo,
299+
);
297300
widget.onPasswordResetEmailSent?.call();
298301
} on AuthException catch (error) {
299302
widget.onError?.call(error);

0 commit comments

Comments
 (0)