Home > @vsf-enterprise/commercetools-api > customerResetPassword
# customerResetPassword() function
Endpoint for resetting password for the user associated with given token. By default, it uses the customerResetPasswordDefaultQuery GraphQL query
Signature:
export declare function customerResetPassword(context: Context, tokenValue: string, newPassword: string, customQuery?: CustomQuery): Promise<CustomerResetPasswordResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
context | Context | Automatically injected context. Refer to Context |
tokenValue | string | Token for resetting user password returned from the customerCreatePasswordResetToken API endpoint |
newPassword | string | New user password |
customQuery | CustomQuery | Custom queries included in the request |
Returns:
Promise<CustomerResetPasswordResponse>
Customer data