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

Function oauthError

packages/core/sdk/src/testing/oauth-test-server.ts:285–293  ·  view source on GitHub ↗
(status: number, error: string, errorDescription: string)

Source from the content-addressed store, hash-verified

283 `${jwtPart({ alg: "RS256", typ: "JWT" })}.${jwtPart(claims)}.sig`;
284
285const oauthError = (status: number, error: string, errorDescription: string) =>
286 jsonResponse(
287 status,
288 {
289 error,
290 error_description: errorDescription,
291 },
292 status === 401 ? { "www-authenticate": 'Basic realm="OAuth test server"' } : {},
293 );
294
295const manualRedirectHttpClientLayer = FetchHttpClient.layer.pipe(
296 Layer.provide(Layer.succeed(FetchHttpClient.RequestInit, { redirect: "manual" })),

Callers 1

serveOAuthTestServerFunction · 0.85

Calls 1

jsonResponseFunction · 0.70

Tested by

no test coverage detected