Alokai
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

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
versionRequiredstringCustomer version
currentPasswordRequiredstringCurrent user password
newPasswordRequiredstringNew user password
responseOptionsOptionalResponseOptions

Returns

User information

Referenced Types

On this page