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

Function unsignedJwt

packages/core/sdk/src/testing/oauth-test-server.ts:282–283  ·  view source on GitHub ↗
(claims: Readonly<Record<string, unknown>>)

Source from the content-addressed store, hash-verified

280 Buffer.from(JSON.stringify(value)).toString("base64url");
281
282const unsignedJwt = (claims: Readonly<Record<string, unknown>>): string =>
283 `${jwtPart({ alg: "RS256", typ: "JWT" })}.${jwtPart(claims)}.sig`;
284
285const oauthError = (status: number, error: string, errorDescription: string) =>
286 jsonResponse(

Callers 1

serveOAuthTestServerFunction · 0.70

Calls 1

jwtPartFunction · 0.70

Tested by

no test coverage detected