MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / waitForCode

Method waitForCode

src/mcp/auth.ts:184–188  ·  view source on GitHub ↗

Await the authorization code from the browser redirect or a manual paste.

()

Source from the content-addressed store, hash-verified

182
183 /** Await the authorization code from the browser redirect or a manual paste. */
184 waitForCode(): Promise<string> {
185 return new Promise<string>((resolve) => {
186 this.codeResolve = resolve
187 })
188 }
189}
190
191/** Start a one-shot loopback HTTP server to receive the OAuth redirect. */

Callers 1

authenticateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected