userCreatePasswordToken Mutation
Description
Creates a password reset token for a user.
mutation userCreatePasswordToken(
$email: String!
$withVerificationCode: Boolean
) {
userCreatePasswordToken(
email: $email
withVerificationCode: $withVerificationCode
)
}
Variables
{
"email": "email@example.com",
"withVerificationCode": true
}
Response
{
"userCreatePasswordToken": "example"
}
Arguments
| Name | Type | Description |
|---|---|---|
email | String! | Email address of the user account. |
withVerificationCode | Boolean | Whether to send a verification code via email. |