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

Function stopOAuthServer

packages/opencode/src/plugin/xai.ts:410–415  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

408}
409
410function stopOAuthServer() {
411 if (oauthServer) {
412 oauthServer.close()
413 oauthServer = undefined
414 }
415}
416
417function waitForOAuthCallback(pkce: PkceCodes, state: string): Promise<TokenResponse> {
418 // A previous in-flight authorize() that the user abandoned (or that is

Callers 1

XaiAuthPluginFunction · 0.70

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected