MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / userRevokeKey

Function userRevokeKey

apps/api/src/lib/jwt/jwt-revocation.ts:33–34  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

31const jtiKey = (jti: string): string => `${JTI_KEY_PREFIX}${jti}`;
32
33const userRevokeKey = (userId: string): string =>
34 `${USER_KEY_PREFIX}${userId}${USER_KEY_SUFFIX}`;
35
36/**
37 * Blocks a specific JWT by ID until it naturally expires. Idempotent:

Callers 3

revokeAllForUserFunction · 0.85
isUserRevokedSinceFunction · 0.85
getUserRevokeCutoffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected