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

Function unsignedJwt

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

Source from the content-addressed store, hash-verified

92 Buffer.from(JSON.stringify(value)).toString("base64url");
93
94const unsignedJwt = (claims: Record<string, unknown>, alg = "RS256"): string =>
95 `${jwtPart({ alg, typ: "JWT" })}.${jwtPart(claims)}.sig`;
96
97const tokenResponse =
98 (body: unknown): TokenHandler =>

Callers 1

Calls 1

jwtPartFunction · 0.70

Tested by

no test coverage detected