loginCustomerGql
Logs in the customer
It receives data from the BigCommerce loginCustomerGql GraphQL API.
Signature
declare function loginCustomerGql(
context: BigcommerceIntegrationContext,
params: index_d_exports$1.LoginCustomerParameters
): Promise<index_d_exports$1.LoginCustomerGqlResponse>;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.loginCustomerGql({ email: 'test@test.com', password: 'pas55w0rd' });