findProvidersForEmail method

  1. @Deprecated('Email enumeration protection is on by default.' 'Read more here https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection')
void findProvidersForEmail(
  1. String email, [
  2. AuthCredential? credential
])

Fetches available providers for the given email.

Implementation

@Deprecated(
  'Email enumeration protection is on by default.'
  'Read more here https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection',
)
void findProvidersForEmail(
  String email, [
  fba.AuthCredential? credential,
]) {
  authListener.onBeforeProvidersForEmailFetch();

  auth
      .fetchSignInMethodsForEmail(email)
      .then(
        (methods) => authListener.onDifferentProvidersFound(
          email,
          methods,
          credential,
        ),
      )
      .catchError(authListener.onError);
}