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

Function canonicalUrlString

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

Source from the content-addressed store, hash-verified

539 "the web base URL / request origin as `${webBaseUrl}${mountPrefix}/oauth/callback`).";
540
541const canonicalUrlString = (value: string): string => {
542 const url = new URL(value.trim());
543 url.hash = "";
544 return url.toString();
545};
546
547const oauthMetadataMatchesClient = (
548 client: Pick<LoadedOAuthClient, "authorizationUrl" | "tokenUrl">,

Callers 2

validateClientEndpointsFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected