method KvSessionStore.prototype.read
KvSessionStore.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 { KvSessionStore } from "cloudflare-plugin/src/index.ts";