Skip to main content

Function: deserializeSession()

deserializeSession(blob, now?): Session
Defined in: packages/core/src/session.ts:49 Parse + validate a serialized session and enforce expiry. now (epoch ms) is injected so the expiry check stays deterministic; when omitted it falls back to the host clock at this single boundary. Throws SESSION_EXPIRED if the session is past its expiresAt, INVALID_CONFIG if the blob is not a valid serialized session.

Parameters

blob

string

now?

number

Returns

Session