fetchSignInMethodsForEmail method

  1. @Deprecated('fetchSignInMethodsForEmail() has been deprecated. ' 'Migrating off of this method is recommended as a security best-practice. Learn more in the Identity Platform documentation: ' ' https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection.')
Future<List<String>> fetchSignInMethodsForEmail(
  1. String email
)

Returns a list of sign-in methods that can be used to sign in a given user (identified by its main email address).

This method is useful when you support multiple authentication mechanisms if you want to implement an email-first authentication flow.

An empty List is returned if the user could not be found.

A FirebaseAuthException maybe thrown with the following error code:

  • invalid-email:
  • Thrown if the email address is not valid.

Implementation

@Deprecated('fetchSignInMethodsForEmail() has been deprecated. '
    'Migrating off of this method is recommended as a security best-practice. Learn more in the Identity Platform documentation: '
    ' https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection.')
Future<List<String>> fetchSignInMethodsForEmail(String email) {
  return _delegate.fetchSignInMethodsForEmail(email);
}