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

Function fetchTarget

packages/core/sdk/src/oauth-flow.test.ts:81–82  ·  view source on GitHub ↗
(input: Parameters<typeof globalThis.fetch>[0])

Source from the content-addressed store, hash-verified

79
80/** The URL a `fetch` double was handed, however the caller spelled it. */
81const fetchTarget = (input: Parameters<typeof globalThis.fetch>[0]): string =>
82 typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
83
84/**
85 * A `fetch` that holds token-endpoint requests open AFTER the authorization

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected