Home > @vsf-enterprise/epcc-api > CustomerEndpoints > setNewPassword

# CustomerEndpoints.setNewPassword() method

Sets the customer's new password after password reset.

Signature:

setNewPassword(context: ElasticPathIntegrationContext, params: SetNewPasswordParams): Promise<void>;

# Parameters

Parameter Type Description
context ElasticPathIntegrationContext An auto-generated value prepended to the method as a first parameter.
params SetNewPasswordParams An object which contains the validation token and the new password of the customer.

Returns:

Promise<void>