class MemoryAccessTokenRevocationStore

Single-process access-token revocation store with bounded lazy expiry work.

Constructors

MemoryAccessTokenRevocationStore(runtime: IRuntimeServices)

Create a store using the supplied runtime clock for lazy expiry.

Methods

isRevoked(jti: string): Promise<boolean>

Return whether an access-token identifier is currently revoked.

revoke(
jti: string,
expiresAt: number
): Promise<void>

Record an access-token identifier as revoked until its expiry timestamp.

Usage

import { MemoryAccessTokenRevocationStore } from "auth-plugin/src/index.ts";