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

Function assertNotRevoked

apps/api/src/api/auth/auth.plugin.ts:52–59  ·  view source on GitHub ↗
(parsed: {
  userId: string;
  jti: string | null;
  issuedAt: number | null;
})

Source from the content-addressed store, hash-verified

50};
51
52const assertNotRevoked = async (parsed: {
53 userId: string;
54 jti: string | null;
55 issuedAt: number | null;
56}): Promise<void> => {
57 await assertJtiNotRevoked(parsed.jti);
58 await assertUserNotRevokedSince(parsed.userId, parsed.issuedAt);
59};
60
61const translateJwtError = (err: unknown): never => {
62 if (err instanceof ApiError) {

Callers 1

verifyAuthCookieFunction · 0.85

Calls 2

assertJtiNotRevokedFunction · 0.85

Tested by

no test coverage detected