Alokai

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

NameRequiredTypeDescription
contextRequiredBigcommerceIntegrationContext

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();

On this page