Skip to main content

KeyworkSession

Overview

A simple session manager to aid in authenticating users.

Usage

import { KeyworkSession } from 'keywork/middleware/classes'

Properties

isNewSession

isNewSession: `boolean`

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

Defined in

middleware/classes/SessionMiddleware.ts:71

sessionID

sessionID: `string`

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

Defined in

middleware/classes/SessionMiddleware.ts:65