Home > @poq/sdk-sfcc > ICustomersClient > postCustomersPasswordReset
First the beforePOST hook is called. After that the validation of the customer information provided in the the password reset document is performed. Then a password reset token is generated and together with the resolved customer is passed to a afterPOST hook. The customer resolution is based on the password reset request type. Both hooks are performed in a single transaction. Currently the resolution can be done by email or login. In case of an email the password reset hook is only executed if one and only one customer has been identified for that email. In the case that more than one customers have been identified for the provided email the resource does nothing.
Signature:
postCustomersPasswordReset(body: PasswordReset, options?: RequestOptions): Promise<PoqResponse<void>>;
Parameter | Type | Description |
---|---|---|
body | PasswordReset | |
options | RequestOptions | (Optional) Override http request option. |
Returns:
Promise<PoqResponse<void>>