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

Function revocationFailMode

apps/api/src/lib/jwt/jwt-revocation.ts:16–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 * that cache errors reject every authenticated request instead.
15 */
16const revocationFailMode = (): "closed" | "open" =>
17 env.JWT_REVOCATION_FAIL_CLOSED ? "closed" : "open";
18
19const JTI_KEY_PREFIX = "jwt:revoked:";
20const USER_KEY_PREFIX = "jwt:user:";

Callers 2

isJtiRevokedFunction · 0.85
isUserRevokedSinceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected