Skip to content
On this page

getSessionContext ​

Definition ​

Loads session context, containing all session-related data.

Signature ​

ts
export async function getSessionContext(
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<SessionContext> 

Parameters ​

NameTypeDescription
contextInstance
ShopwareApiInstance
instance of the api client (by default it's an Axios instance)

Return type ​

ts
Promise<SessionContext>

Usage example ​

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz

getSessionContext has loaded