Learn R Programming

firebase.auth.rest (version 1.0.0)

sign_up: Sign up with email/password

Description

Sign up with email/password

Usage

sign_up(email, password)

Value

A named list with the following items:

  • idToken: A Firebase Auth ID token for the newly created user.

  • email: The email for the newly created user.

  • refreshToken: A Firebase Auth refresh token for the newly created user.

  • expiresIn: The number of seconds in which the ID token expires.

  • localId: The uid of the newly created user.

  • error:

    • NULL if no error code in response

    • A list of 2 if response was an error:

      • code: Error code

      • message: Error message

Arguments

email

The email for the user to create.

password

The password for the user to create.

Details

Visit Firebase Auth REST API docs for more details

Examples

Run this code
if (FALSE) {
  sign_up(email = "new-user-email", password = "strong-password")
}

Run the code above in your browser using DataLab