change_email {firebase.auth.rest}R Documentation

Change email

Description

Change email

Usage

change_email(id_token, email)

Arguments

id_token

String. A Firebase Auth ID token for the user.

email

String. User's new email.

Details

DISCLAIMER: Changing a users's email requires that you disable email enumeration protection for your firebase project. This is NOT recommended.

Value

A named list with the following items:

Examples

## Not run: 
  # first sign in user and get the 'id_token':
  user <- sign_in(email = "user@gmail.com", password = "password")
  id_token <- user$idToken

  # change email:
  response <- change_email(
    id_token = id_token,
    email = "new.email@mail.com"
  )
  response

## End(Not run)

[Package firebase.auth.rest version 1.0.1 Index]