MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / getJoseErrorCode

Function getJoseErrorCode

apps/cloud/src/mcp/jwt.ts:46–47  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

44const isJoseErrorCodeShape = Schema.is(JoseErrorCode);
45
46const getJoseErrorCode = (cause: unknown): string | null =>
47 isJoseErrorCodeShape(cause) ? cause.code : null;
48
49const isJoseErrorCode = (code: string): boolean => code.startsWith("ERR_J");
50

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected