You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
customerChangeMyPassword
Endpoint for changing password of the currently logged user. By default, it uses the customerChangeMyPasswordDefaultQuery GraphQL query
Signature
export declare function customerChangeMyPassword(
context: SetupContext,
version: string,
currentPassword: string,
newPassword: string,
responseOptions?: ResponseOptions
): Promise<CustomerChangeMyPasswordResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
version | Required | string | Customer version |
currentPassword | Required | string | Current user password |
newPassword | Required | string | New user password |
responseOptions | Optional | ResponseOptions |
Returns
User information