forgotPassword method

  1. @override
Future<AuthResult<void>> forgotPassword(
  1. String email
)
override

Implementation

@override
Future<AuthResult<void>> forgotPassword(String email) async {
  try {
    await _auth.sendPasswordResetEmail(email: email);
    return const AuthResult.success(null);
  } on fb.FirebaseAuthException catch (e) {
    return AuthResult.failure(AuthException.fromFirebase(e));
  }
}