[]previous and next page

SessionRecord

What a store keeps for one session.

What a store keeps for one session.

Import#

ts
import type { SessionRecord } from "@shadow-js/dusk/server";

Signature#

ts
interface SessionRecord {
  readonly data: Readonly<Record<string, unknown>>;
  /** Milliseconds since epoch when the session was first created. */
  readonly createdAt: number;
  /** When the id was last rotated. */
  readonly rotatedAt: number;
  /** When the session was last seen. */
  readonly lastSeenAt: number;
}

Members#

Name Type Description
data readonly data: Readonly<Record<string, unknown>>
createdAt readonly createdAt: number Milliseconds since epoch when the session was first created.
rotatedAt readonly rotatedAt: number When the id was last rotated.
lastSeenAt readonly lastSeenAt: number When the session was last seen.