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

Function json

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

Source from the content-addressed store, hash-verified

35type TokenHandler = (call: TokenCall) => HttpServerResponse.HttpServerResponse;
36
37const json = (status: number, body: unknown): HttpServerResponse.HttpServerResponse =>
38 HttpServerResponse.jsonUnsafe(body, { status });
39
40const serveTokenEndpoint = (handler: TokenHandler) =>
41 Effect.gen(function* () {

Callers 2

tokenResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected