UNPKG

veritatisdoloremque

Version:
33 lines (19 loc) 1.21 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [signInWithEmailAndPassword](./auth.signinwithemailandpassword.md) ## signInWithEmailAndPassword() function Asynchronously signs in using an email and password. <b>Signature:</b> ```typescript export declare function signInWithEmailAndPassword(auth: Auth, email: string, password: string): Promise<UserCredential>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | auth | [Auth](./auth.auth.md) | The Auth instance. | | email | string | The users email address. | | password | string | The users password. | <b>Returns:</b> Promise&lt;[UserCredential](./auth.usercredential.md)<!-- -->&gt; ## 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()](./auth.createuserwithemailandpassword.md)<!-- -->.