Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/components/supa_email_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down Expand Up @@ -603,7 +603,7 @@ class _SupaEmailAuthState extends State<SupaEmailAuth> {
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);
Expand Down