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

customerSignMeIn

Endpoint for logging in a user. By default, it uses the customerSignMeInDefaultQuery GraphQL query

Signature

export declare function customerSignMeIn(
	context: SetupContext,
	draft: CustomerSignMeInDraft,
	customQuery?: CustomQuery,
	responseOptions?: ResponseOptions
): Promise<CustomerSignMeInResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
draftRequiredCustomerSignMeInDraftUser credentials
customQueryOptionalCustomQuery
responseOptionsOptionalResponseOptions

Returns

User information

Referenced Types

On this page