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

Function isExpectedJwtVerificationError

apps/cloud/src/mcp/jwt.ts:69–70  ·  view source on GitHub ↗
(error: McpJwtVerificationError)

Source from the content-addressed store, hash-verified

67 });
68
69const isExpectedJwtVerificationError = (error: McpJwtVerificationError): boolean =>
70 error.reason === "expired" || error.reason === "invalid";
71
72const withJwtVerificationSpan = <A>(
73 effect: Effect.Effect<A, McpJwtVerificationError>,

Callers 1

withJwtVerificationSpanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected