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

Function unsignedJwt

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

jwtPartFunction · 0.85

Tested by

no test coverage detected