MCPcopy Index your code
hub / github.com/codeaashu/claude-code / resolveOnce

Function resolveOnce

src/services/mcp/auth.ts:1031–1035  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

1029 const authorizationCode = await new Promise<string>((resolve, reject) => {
1030 let resolved = false
1031 const resolveOnce = (code: string) => {
1032 if (resolved) return
1033 resolved = true
1034 resolve(code)
1035 }
1036 const rejectOnce = (error: Error) => {
1037 if (resolved) return
1038 resolved = true

Callers 1

performMCPOAuthFlowFunction · 0.70

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected