Skip to main content

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

NameTypeDescription
emailString!Email address of the user account.
withVerificationCodeBooleanWhether to send a verification code via email.

Returns

String