Skip to main content
Resets the customer’s password using the token received via email. On success, automatically logs in the customer.

Parameters

Returns

Promise<ShopifyCustomer> - The authenticated customer.

Throws

  • Error - If token is invalid/expired or password doesn’t meet requirements.

Examples

Reset password page

Extract token from Shopify reset URL

Reset tokens expire after a period set by Shopify. If the token is expired, prompt the user to request a new reset email.