customer Reset
Requires access scope.
Resets a customer's password using the reset token from a password recovery email. On success, returns the updated Customer and a new for immediate authentication.
Use the mutation to send the password recovery email that provides the reset token. Alternatively, use if you have the full reset URL instead of the customer ID and token.
This mutation handles sensitive customer credentials. Validate password requirements on the client before submission.
This mutation handles sensitive customer credentials. Validate password requirements on the client before submission.
Caution: This mutation handles sensitive customer credentials. Validate password requirements on the client before submission.
Arguments
- id (ID!)
- input (CustomerResetInput!)
- •ID!required
Specifies the customer to reset.
- Anchor to inputinput•Customer
Reset Input! required The fields used to reset a customer’s password.
- customer (Customer)
- customerAccessToken (CustomerAccessToken)
- customerUserErrors ([CustomerUserError!]!)
- userErrors ([UserError!]!): deprecated
- Anchor to customercustomer•Customer
The customer object which was reset.
- Anchor to customerAccessTokencustomer•Customer
Access Token Access Token A newly created customer access token object for the customer.
- Anchor to customerUserErrorscustomer•[Customer
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated The list of errors that occurred from executing the mutation.