findProvidersForEmail method

  1. @override
Future<List<String>> findProvidersForEmail(
  1. String email, {
  2. AuthCredential? credential,
})
inherited

Implementation

@override
Future<List<String>> findProvidersForEmail(
  String email, {
  AuthCredential? credential,
}) async {
  value = const FetchingProvidersForEmail();
  try {
    final methods = await auth.fetchSignInMethodsForEmail(email);
    value = DifferentSignInMethodsFound(email, methods, credential);
    return methods;
  } on Exception catch (err) {
    value = AuthFailed(err);
    rethrow;
  }
}