The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/auth > fetchSignInMethodsForEmail

fetchSignInMethodsForEmail() function

Gets the list of possible sign in methods for the given email address.

Signature:

export declare function fetchSignInMethodsForEmail(auth: Auth, email: string): Promise<string[]>;

Parameters

Parameter Type Description
auth Auth The Auth instance.
email string The user's email address.

Returns:

Promise<string[]>

Description

This is useful to differentiate methods of sign-in for the same provider, eg. EmailAuthProvider which has 2 methods of sign-in, SignInMethod.EMAIL_PASSWORD and SignInMethod.EMAIL_LINK .