Skip to content

customerPasswordReset

Mutationin Authentication

Reset customer password using a reset token received via email

Arguments

ArgumentTypeDescription
tokenString!
passwordString!

Returns

CustomerPasswordResetResponse!

FieldTypeDescription
customerCustomerUpdated customer account information after password reset
customerErrors[CustomerPasswordResetError!]Error details if the password reset failed

Example

mutation {
customerPasswordReset(
token: "reset-token-from-email"
password: "newSecurePassword789"
) {
customer {
id
email
}
customerErrors {
... on PasswordResetError {
code
message
}
... on ValidationError {
message
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccStub: answers Not implemented

Used by

The storefront packages that send it, in these GraphQL documents: