Generate Reset Password Token for Customer
Generate a reset password token for a customer. This API route doesn’t reset the customer password or send them the reset instructions in a notification.
Instead, This API route emits the auth.password_reset
event, passing it the token as a payload. You can listen to that event in a subscriber as explained in this guide, then send the customer a notification. The notification is sent using a Notification Module Provider, and it should have a URL that accepts a token
query parameter, allowing the customer to reset their password from the storefront.
Use the generated token to update the customer’s password using the Reset Password API route.
Path Parameters
The provider used for authentication.
"emailpass"
Body
The customer's identifier for the selected auth provider. For example, for the emailpass
auth provider, the value is the customer's email.
Response
OK