interface IJTIStorage

Interface for JTI storage backend Allows for different storage implementations (memory, Redis, etc.)

Methods

exists(
jti: string,
issuer: string,
): Promise<boolean>

Check if a JTI exists

store(entry: JTIEntry): Promise<void>

Store a JTI with expiration

cleanup(): Promise<number>

Clean up expired JTIs

size(): Promise<number>

Get total number of stored JTIs

Usage

import { type IJTIStorage } from ".";