findProvidersForEmail method
- @Deprecated('Email enumeration protection is on by default.' 'Read more here https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection')
- String email, [
- AuthCredential? credential
inherited
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);
}