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

Function jwtPart

packages/core/sdk/src/testing/oauth-test-server.ts:279–280  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

277 createHash("sha256").update(verifier).digest("base64url");
278
279const jwtPart = (value: unknown): string =>
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`;

Callers 1

unsignedJwtFunction · 0.70

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected