Appearance
getSessionContext
Definition
Loads session context, containing all session-related data.
Signature
ts
export async function getSessionContext(
contextInstance: ShopwareApiInstance = defaultInstance
): Promise<SessionContext>
Parameters
Name | Type | Description |
---|---|---|
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.