Skip to content

session

const session: {
getDeviceEvents: Promise<unknown[]>;
get hitSessionId(): string | null;
};

Defined in: domains/session.ts:5

getDeviceEvents(): Promise<unknown[]>;

Get all analytics events recorded during the current device session.

In the iOS app, fetches events from the server scoped to the current session. Outside the app (local development), returns events buffered in IndexedDB via localforage.

Promise<unknown[]>

Array of raw event objects.

get hitSessionId(): string | null;

The session id created from the JWT’s hit_uuid when the presentation was opened via a shared link on the CDN, or null if not applicable or not yet created.

string | null