SessionPlugin(options?: SessionPluginOptions): IPlugin
Registers cookie-backed sessions under CAPABILITIES.SESSION, with optional
session-backed form CSRF.
The default is a self-contained encrypted cookie: AES-256-GCM under a key
derived from the secret by HKDF-SHA256, all through runtime.subtle, so there
is no npm dependency and it works on Cloudflare Workers. Setting store moves
the payload server-side and leaves only an opaque id in the cookie, which is
what makes immediate revocation possible.
optional
options: SessionPluginOptions
Session configuration