--- title: customerReset - Storefront API description: > Resets a customer's password using the reset token from a password recovery email. On success, returns the updated [`Customer`](/docs/api/storefront/unstable/objects/Customer) and a new [`CustomerAccessToken`](/docs/api/storefront/unstable/objects/CustomerAccessToken) for immediate authentication. Use the [`customerRecover`](/docs/api/storefront/unstable/mutations/customerRecover) mutation to send the password recovery email that provides the reset token. Alternatively, use [`customerResetByUrl`](/docs/api/storefront/unstable/mutations/customerResetByUrl) if you have the full reset URL instead of the customer ID and token. > Caution: > This mutation handles sensitive customer credentials. Validate password requirements on the client before submission. api_version: unstable api_name: storefront source_url: html: 'https://shopify.dev/docs/api/storefront/unstable/mutations/customerReset' md: 'https://shopify.dev/docs/api/storefront/unstable/mutations/customerReset.md' --- # customer​Reset mutation Requires `unauthenticated_write_customers` access scope. Resets a customer's password using the reset token from a password recovery email. On success, returns the updated [`Customer`](https://shopify.dev/docs/api/storefront/unstable/objects/Customer) and a new [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/unstable/objects/CustomerAccessToken) for immediate authentication. Use the [`customerRecover`](https://shopify.dev/docs/api/storefront/unstable/mutations/customerRecover) mutation to send the password recovery email that provides the reset token. Alternatively, use [`customerResetByUrl`](https://shopify.dev/docs/api/storefront/unstable/mutations/customerResetByUrl) if you have the full reset URL instead of the customer ID and token. *** **Caution:** This mutation handles sensitive customer credentials. Validate password requirements on the client before submission. *** ## Arguments * id [ID!](https://shopify.dev/docs/api/storefront/unstable/scalars/ID) required Specifies the customer to reset. * input [Customer​Reset​Input!](https://shopify.dev/docs/api/storefront/unstable/input-objects/CustomerResetInput) required The fields used to reset a customer’s password. *** ## Customer​Reset​Payload returns * customer [Customer](https://shopify.dev/docs/api/storefront/unstable/objects/Customer) The customer object which was reset. * customer​Access​Token [Customer​Access​Token](https://shopify.dev/docs/api/storefront/unstable/objects/CustomerAccessToken) A newly created customer access token object for the customer. * customer​User​Errors [\[Customer​User​Error!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/CustomerUserError) non-null The list of errors that occurred from executing the mutation. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/UserError) non-nullDeprecated The list of errors that occurred from executing the mutation. *** ## Examples * ### customerReset reference