resetPassword method

  1. @override
Future<AuthResult<void>> resetPassword({
  1. required String token,
  2. required String newPassword,
})
override

Implementation

@override
Future<AuthResult<void>> resetPassword({required String token, required String newPassword}) async {
  try {
    await _auth.confirmPasswordReset(code: token, newPassword: newPassword);
    return const AuthResult.success(null);
  } on fb.FirebaseAuthException catch (e) {
    return AuthResult.failure(AuthException.fromFirebase(e));
  }
}