MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / authorizeHost

Function authorizeHost

packages/cli/src/auth/oauth.ts:255–262  ·  view source on GitHub ↗
(fullUrl: string)

Source from the content-addressed store, hash-verified

253}
254
255function authorizeHost(fullUrl: string): string {
256 try {
257 const u = new URL(fullUrl);
258 return `${u.origin}${u.pathname}`;
259 } catch {
260 return fullUrl.split("?")[0] ?? fullUrl;
261 }
262}
263
264function buildAuthorizeUrl(args: {
265 clientId: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected