updateEmail
client.updateEmail({
accessToken: string,
email: string,
captchaToken: string,
// Optional fields
redirectUrl: string,
})
About this command
Update the profile’s email address and send a verification email.
|
Examples
client.updateEmail({
accessToken: 'eyJ0eXAiOiJKV1QiL...',
email: 'johnatthan.doe@gmail.com',
captchaToken: 'pyJ0e9WiOimld1Qiqm',
redirectUrl: 'https://example-email-update.com'
})
Parameters
| Parameter | Description | ||
|---|---|---|---|
Pass along the response token you have received from reCAPTCHA. See Google’s documentation on how to obtain it. Defaults to |
|||
The authorization credential JSON Web Token (JWT) used to access the ReachFive API, less than five minutes old. |
|||
The URL sent in the email to which the user is redirected. This URL must be whitelisted in the |
|||
The email address of the profile. The new email address must be different from the old one.
|