MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / buildBrowserLoginURL

Function buildBrowserLoginURL

cli/src/commands/login.ts:103–108  ·  view source on GitHub ↗
(apiUrl: string, callbackUrl: string, cliState: string)

Source from the content-addressed store, hash-verified

101}
102
103function buildBrowserLoginURL(apiUrl: string, callbackUrl: string, cliState: string): string {
104 const loginUrl = new URL("/api/auth/login", apiUrl);
105 loginUrl.searchParams.set("cli_callback", callbackUrl);
106 loginUrl.searchParams.set("cli_state", cliState);
107 return loginUrl.toString();
108}
109
110type BrowserLoginResult = {
111 apiKey: string;

Callers 1

waitForBrowserLoginFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected