createUserWithEmailAndPassword method

Future<UserCredential> createUserWithEmailAndPassword(
  1. String email,
  2. String password
)

Creates a new user account associated with the specified email address and password.

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.

Implementation

Future<UserCredential> createUserWithEmailAndPassword(
        String email, String password) =>
    handleThenable(jsObject.createUserWithEmailAndPassword(email, password))
        .then((u) => UserCredential.fromJsObject(u));