requestPasswordReset
// Request password reset with email
client.requestPasswordReset({
email: string,
// Optional arguments
redirectUrl: string,
returnToAfterPasswordReset: string, (1)
loginLink: string,
captchaToken: string,
origin: string
})
// Request password reset with phone number
client.requestPasswordReset({
phoneNumber: string,
origin: string,
captchaToken: string
})
| 1 | This parameter should only be used with Hosted Pages. |
About this command
Request a password reset for the given email or phone number. On success, an email or an SMS with a reset token is sent to the user.
Parameters
Free text parameter describing the source of the action (e.g, login, password reset request). |
|||
Pass along the response token you have received from reCAPTCHA. See Google’s documentation on how to obtain it. Defaults to |
|||
The user’s email address. |
|||
The login URL the user will be redirected to after requesting password reset. This attribute can be used in a user interface. |
|||
The user’s phone number. Both the international format and the national conventions of the account’s country are accepted if configured in account settings. |
|||
The URL sent in the email to which the user is redirected. This URL must be whitelisted in the |
|||
Returned in the
|