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

Function canonicalUrlString

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

Source from the content-addressed store, hash-verified

422 "the web base URL / request origin as `${webBaseUrl}${mountPrefix}/oauth/callback`).";
423
424const canonicalUrlString = (value: string): string => {
425 const url = new URL(value.trim());
426 url.hash = "";
427 return url.toString();
428};
429
430const oauthMetadataMatchesClient = (
431 client: Pick<LoadedOAuthClient, "authorizationUrl" | "tokenUrl">,

Callers 2

validateClientEndpointsFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected