Home > @vsf-enterprise/commercetools-api > customerChangeMyPassword

# customerChangeMyPassword() function

Endpoint for changing password of the currently logged user. By default, it uses the customerChangeMyPasswordDefaultQuery GraphQL query

Signature:

export declare function customerChangeMyPassword(context: Context, version: string, currentPassword: string, newPassword: string): Promise<CustomerChangeMyPasswordResponse>;

# Parameters

Parameter Type Description
context Context Automatically injected context. Refer to Context
version string Customer version
currentPassword string Current user password
newPassword string New user password

Returns:

Promise<CustomerChangeMyPasswordResponse>

User information