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

Function canonicalUrlString

packages/core/sdk/src/oauth-service.ts:435–439  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

433 "the web base URL / request origin as `${webBaseUrl}${mountPrefix}/oauth/callback`).";
434
435const canonicalUrlString = (value: string): string => {
436 const url = new URL(value.trim());
437 url.hash = "";
438 return url.toString();
439};
440
441const oauthMetadataMatchesClient = (
442 client: Pick<LoadedOAuthClient, "authorizationUrl" | "tokenUrl">,

Callers 2

validateClientEndpointsFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected