MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / buildZooCodeSignInUrl

Function buildZooCodeSignInUrl

src/api/providers/zoo-gateway.ts:54–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54function buildZooCodeSignInUrl(): string {
55 const callbackUri = encodeURIComponent(
56 `${vscode.env.uriScheme}://${Package.publisher}.${Package.name}/auth-callback`,
57 )
58 const device = encodeURIComponent(vscode.env.appName || "VS Code")
59 const editor = encodeURIComponent("VS Code")
60 return `${getZooCodeBaseUrl()}/dashboard/connect?device=${device}&editor=${editor}&version=${Package.version}&callback_uri=${callbackUri}`
61}
62
63type ZooGatewayApiErrorAction =
64 | { kind: "sign_in" }

Callers 1

surfaceGatewayApiErrorFunction · 0.85

Calls 1

getZooCodeBaseUrlFunction · 0.90

Tested by

no test coverage detected