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

Function json

packages/core/sdk/src/oauth-helpers.test.ts:46–47  ·  view source on GitHub ↗
(status: number, body: unknown)

Source from the content-addressed store, hash-verified

44type TokenHandler = (call: TokenCall) => HttpServerResponse.HttpServerResponse;
45
46const json = (status: number, body: unknown): HttpServerResponse.HttpServerResponse =>
47 HttpServerResponse.jsonUnsafe(body, { status });
48
49/** A JSON-format token request carried a `scope`, without narrowing `unknown`
50 * for every handler that only needs to branch on its presence. */

Callers 2

tokenResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected