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

Function canonicalUrlString

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

Source from the content-addressed store, hash-verified

410 "the web base URL / request origin as `${webBaseUrl}${mountPrefix}/oauth/callback`).";
411
412const canonicalUrlString = (value: string): string => {
413 const url = new URL(value.trim());
414 url.hash = "";
415 return url.toString();
416};
417
418const oauthMetadataMatchesClient = (
419 client: Pick<LoadedOAuthClient, "authorizationUrl" | "tokenUrl">,

Callers 2

validateClientEndpointsFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected