resetPassword
resetPassword is a Magento 2 GraphQL mutation in the Customer module. Reset a customer's password using the reset password token that the customer received in an email after requesting it using requestPasswordResetEmail. It returns Boolean and requires an Authorization header (Bearer customer token).
Last verified: against Magento 2.4.9.
Returns
Boolean
Resolver class
\Magento\CustomerGraphQl\Model\Resolver\ResetPassword
Arguments
The customer's email address.
A runtime token generated by the `requestPasswordResetEmail` mutation.
The customer's new password.
Example request
Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.
Headers
Query
mutation ($email: String!, $resetPasswordToken: String!, $newPassword: String!) {
resetPassword(email: $email, resetPasswordToken: $resetPasswordToken, newPassword: $newPassword)
}Variables
{
"email": "",
"newPassword": "",
"resetPasswordToken": ""
}Related in CustomerGraphQl
Other fields shipped by the same module.
changeCustomerPassword
Change the password for the logged-in customer.
Customer · returns Customer
confirmEmail
Confirms the email address for a customer.
Customer · returns CustomerOutput
createCustomer
DeprecatedCustomer · returns CustomerOutput
createCustomerAddress
Create a billing or shipping address for a customer or guest.
Customer · returns CustomerAddress
createCustomerV2
Create a customer account.
Customer · returns CustomerOutput
customer
Return detailed information about a customer account.
Customer · returns Customer
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.