Home > @firebase/auth > signInWithEmailAndPassword
signInWithEmailAndPassword() function
Asynchronously signs in using an email and password.
Signature:
export declare function signInWithEmailAndPassword(auth: Auth, email: string, password: string): Promise<UserCredential>;
Parameters
Parameter | Type | Description |
---|---|---|
auth | Auth | The Auth instance. |
string | The users email address. | |
password | string | The users password. |
Returns:
Promise<UserCredential>
Description
Fails with an error if the email address and password do not match.
Note: The user's password is NOT the password used to access the user's email account. The email address serves as a unique identifier for the user, and the password is used to access the user's account in your Firebase project. See also: createUserWithEmailAndPassword().