UNPKG

voluptasmollitia

Version:
35 lines (20 loc) 1.25 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [createUserWithEmailAndPassword](./auth.createuserwithemailandpassword.md) ## createUserWithEmailAndPassword() function Creates a new user account associated with the specified email address and password. <b>Signature:</b> ```typescript export declare function createUserWithEmailAndPassword(auth: Auth, email: string, password: string): Promise<UserCredential>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | auth | [Auth](./auth.auth.md) | The Auth instance. | | email | string | The user's email address. | | password | string | The user's chosen password. | <b>Returns:</b> Promise&lt;[UserCredential](./auth.usercredential.md)<!-- -->&gt; ## Remarks On successful creation of the user account, this user will also be signed in to your application. User account creation can fail if the account already exists or the password is invalid. Note: The email address acts as a unique identifier for the user and enables an email-based password reset. This function will create a new user account and set the initial user password.