Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.22 KB

File metadata and controls

32 lines (19 loc) · 1.22 KB

Home > @firebase/auth > signInWithEmailAndPassword

signInWithEmailAndPassword() function

Asynchronously signs in using an email and password.

Signature:

export declare function signInWithEmailAndPassword(auth: externs.Auth, email: string, password: string): Promise<externs.UserCredential>;

Parameters

Parameter Type Description
auth externs.Auth The Auth instance.
email string The users email address.
password string The users password.

Returns:

Promise<externs.UserCredential>

Remarks

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