Skip to main content
Module

x/keywork/mod.ts>Middleware.KeyworkSession

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
interface Middleware.KeyworkSession
import { type Middleware } from "https://deno.land/x/keywork@v6.0.1/mod.ts";
const { KeyworkSession } = Middleware;

A simple session manager to aid in authenticating users.

Properties

sessionID: string

The user's current session ID, derived from the Request cookie header.

isNewSession: boolean

true if this session has just been created. false if the Request included a session cookie.