diff --git a/lib/src/components/supa_email_auth.dart b/lib/src/components/supa_email_auth.dart index 0fd2396..dfc5bd9 100644 --- a/lib/src/components/supa_email_auth.dart +++ b/lib/src/components/supa_email_auth.dart @@ -187,7 +187,7 @@ class SupaEmailAuth extends StatefulWidget { final void Function(AuthResponse response) onSignUpComplete; /// Callback for sending the password reset email - final void Function()? onPasswordResetEmailSent; + final void Function(String email)? onPasswordResetEmailSent; /// Callback for when the auth action threw an exception /// @@ -603,7 +603,7 @@ class _SupaEmailAuthState extends State { email, redirectTo: widget.resetPasswordRedirectTo ?? widget.redirectTo, ); - widget.onPasswordResetEmailSent?.call(); + widget.onPasswordResetEmailSent?.call(email); // FIX use_build_context_synchronously if (!mounted) return; context.showSnackBar(widget.localization.passwordResetSent);