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

Function json

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

Source from the content-addressed store, hash-verified

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

Callers 2

tokenResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected