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

Function canonicalUrlString

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

Source from the content-addressed store, hash-verified

606 "the web base URL / request origin as `${webBaseUrl}${mountPrefix}/oauth/callback`).";
607
608const canonicalUrlString = (value: string): string => {
609 const url = new URL(value.trim());
610 url.hash = "";
611 return url.toString();
612};
613
614const oauthMetadataMatchesClient = (
615 client: Pick<LoadedOAuthClient, "authorizationUrl" | "tokenUrl">,

Callers 2

validateClientEndpointsFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected