interface SessionServiceDeps

Runtime capabilities the service needs, injected for testability.

Properties

Web Crypto, from IRuntimeServices.subtle.

readonly
randomBytes: (length: number) => Uint8Array

Random bytes, from IRuntimeServices.randomBytes.

readonly
now: () => number

Wall-clock milliseconds, from IRuntimeServices.now.

readonly
uuid: () => string

Identifier source, from IRuntimeServices.uuid.

Usage

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