Alokai

loginCustomer

Logs in the customer

This method sends a POST request to the loginCustomer endpoint of the Vue Storefront API Middleware. In turn, it performs the SSO login as per the loginCustomer documentation.

Signature

declare function loginCustomer(
	props: LoginCustomerParameters,
	options?: MethodOptions
): Promise<LoginCustomerResponse>;

Parameters

NameRequiredTypeDescription
propsRequiredLoginCustomerParametersParameter object which can be used with this method. Refer to its type definition to learn about possible properties.
optionsOptionalMethodOptions

Returns

Returns a response with the matching category data.

Referenced Types

Examples

Fetching category that matches the id from the query

import { sdk } from '~/sdk.config.ts';

const login = await sdk.bigcommerce.loginCustomer({ email: 'test@test.com', password: 'pas55w0rd' });

On this page