Home > @firebase/auth > signInWithEmailAndPassword
Asynchronously signs in using an email and password.
Signature:
export declare function signInWithEmailAndPassword(auth: externs.Auth, email: string, password: string): Promise<externs.UserCredential>;| Parameter | Type | Description |
|---|---|---|
| auth | externs.Auth | The Auth instance. |
| string | The users email address. | |
| password | string | The users password. |
Returns:
Promise<externs.UserCredential>
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().