Alokai
You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x

signUserOut

Terminate an authenticated user session in SAP Commerce Cloud.

It calls the of the SAP OAuth server to invalidate the access token stored as the vsf-sap-token browser cookie. It also removes the cookie automatically afterwards.

Signature

export declare function signUserOut(
	context: SapccIntegrationContext
): Promise<void>;

Parameters

NameRequiredTypeDescription
contextRequiredSapccIntegrationContext

Returns

This method does not return anything.

Referenced Types

Examples

Signing a user out.

import { sdk } from '~/sdk';

const tokenResponse = await sdk.commerce.signUserOut();

On this page