method ISession.toJSON
ISession.toJSON(): SessionData

Returns a plain snapshot of the current data.

Return Type

A detached copy; mutating it does not affect the session

Usage

import { type ISession } from "common/src/index.ts";