logoutCustomer
Logs out the customer
It performs the SSO logout, by sending a GET request to the SSO login link with the /login.php?action=logout redirect logoutCustomer documentation.
Signature
declare function logoutCustomer(
context: BigcommerceIntegrationContext
): Promise<void>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | BigcommerceIntegrationContext |
Returns
Returns void
Referenced Types
Examples
Fetching category that matches the id from the query
import { sdk } from '~/sdk.config.ts';
const logout = await sdk.bigcommerce.logoutCustomer();