Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

customerResetPassword

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: SetupContext,
	tokenValue: string,
	newPassword: string,
	customQuery?: CustomQuery,
	responseOptions?: ResponseOptions
): Promise<CustomerResetPasswordResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
tokenValueRequiredstringToken for resetting user password returned from the customerCreatePasswordResetToken API endpoint
newPasswordRequiredstringNew user password
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

Customer data

Referenced Types

On this page