loginCustomer
Logs in the customer
It performs the SSO login as per the loginCustomer documentation.
Signature
declare function loginCustomer(
context: BigcommerceIntegrationContext,
params: index_d_exports$1.LoginCustomerParameters
): Promise<index_d_exports$1.LoginCustomerResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | BigcommerceIntegrationContext | |
params | Required | index_d_exports$1.LoginCustomerParameters |
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' });