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

customerCreatePasswordResetToken

Endpoint for request a token for resetting password for the user with given e-mail address. By default, it uses the customerCreatePasswordResetTokenDefaultQuery GraphQL query

Signature

customerCreatePasswordResetToken: (
	context: SetupContext,
	email: string,
	expose?: false,
	customQuery?: CustomQuery,
	responseOptions?: ResponseOptions
) => Promise<CustomerCreatePasswordResetTokenResponse | any>

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
emailRequiredstringCustomer email address
exposeOptionalfalseCustomer email address
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

Password reset token information

Referenced Types

On this page