storefront-api-examples
storefront-api-examples copied to clipboard
CustomerRecover not returning token it returns only userErrors
Storefront https://shopify.dev/api/storefront/reference/customers/customerreset CustomerReset needs token But https://shopify.dev/api/storefront/reference/customers/customerrecover CustomerRecover not returning token
customerRecover will send an email to the customer with a url to reset their password that looks like: https://yourdomain.com/account/reset/customerId/resetToken.
You can either extract the token from the url to use in customerReset or there is customerResetByUrl where you can supply the entire url.