Skip to content

Commit 31783aa

Browse files
authored
onPasswordResetEmail with email arg
1 parent 89c703b commit 31783aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/src/components/supa_email_auth.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class SupaEmailAuth extends StatefulWidget {
186186
final void Function(AuthResponse response) onSignUpComplete;
187187

188188
/// Callback for sending the password reset email
189-
final void Function()? onPasswordResetEmailSent;
189+
final void Function(String email)? onPasswordResetEmailSent;
190190

191191
/// Callback for when the auth action threw an exception
192192
///
@@ -636,7 +636,7 @@ class _SupaEmailAuthState extends State<SupaEmailAuth> {
636636
email,
637637
redirectTo: widget.resetPasswordRedirectTo ?? widget.redirectTo,
638638
);
639-
widget.onPasswordResetEmailSent?.call();
639+
widget.onPasswordResetEmailSent?.call(email);
640640
// FIX use_build_context_synchronously
641641
if (!mounted) return;
642642
context.showSnackBar(widget.localization.passwordResetSent);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: supabase_auth_ui
22
description: UI library to implement auth forms using Supabase and Flutter
3-
version: 0.5.7
3+
version: 0.5.8
44
homepage: https://supabase.com
55
repository: 'https://github.com/supabase-community/flutter-auth-ui'
66

0 commit comments

Comments
 (0)