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

Function unsignedJwt

packages/core/sdk/src/oauth-helpers.test.ts:105–106  ·  view source on GitHub ↗
(claims: Record<string, unknown>, alg = "RS256")

Source from the content-addressed store, hash-verified

103 Buffer.from(JSON.stringify(value)).toString("base64url");
104
105const unsignedJwt = (claims: Record<string, unknown>, alg = "RS256"): string =>
106 `${jwtPart({ alg, typ: "JWT" })}.${jwtPart(claims)}.sig`;
107
108const tokenResponse =
109 (body: unknown): TokenHandler =>

Callers 1

Calls 1

jwtPartFunction · 0.70

Tested by

no test coverage detected