method CacheSessionStore.prototype.read
CacheSessionStore.prototype.read(id: string): Promise<SessionData | null>

Reads a stored session payload.

Parameters

id: string

Session identifier

Return Type

Promise<SessionData | null>

The payload, or null when absent or expired

Usage

import { CacheSessionStore } from "session-plugin/src/index.ts";