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

Function insertPath

packages/core/sdk/src/oauth-discovery.ts:417–420  ·  view source on GitHub ↗
(suffix: string)

Source from the content-addressed store, hash-verified

415 // Mirrors the library's own well-known composition so the URL we
416 // surface matches what was actually fetched.
417 const insertPath = (suffix: string) =>
418 hasPath
419 ? `${issuerOrigin}/.well-known/${suffix}${issuerPath}`
420 : `${issuerOrigin}/.well-known/${suffix}`;
421
422 const candidates: WellKnownCandidate[] = [
423 { algorithm: "oauth2", url: insertPath("oauth-authorization-server") },

Callers 1

wellKnownCandidatesForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected