Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

signOut

Method for signing out the user.

This method sends a POST request to the customerSignOut endpoint.

Signature

export declare function signOut(
	
): Promise<CustomerSignOutResponse>;

Returns

Returns a representation of the CustomerSignOutResponse.

Referenced Types

Examples

Sign out the user:

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

sdk.commerce.signOut();

On this page