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. |
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 .