MCPcopy Index your code
hub / github.com/anomalyco/opencode / stopOAuthServer

Function stopOAuthServer

packages/opencode/src/plugin/openai/codex.ts:229–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227}
228
229function stopOAuthServer() {
230 if (oauthServer) {
231 oauthServer.close(() => {})
232 oauthServer = undefined
233 }
234}
235
236function waitForOAuthCallback(pkce: PkceCodes, state: string): Promise<TokenResponse> {
237 return new Promise((resolve, reject) => {

Callers 1

CodexAuthPluginFunction · 0.70

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected