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

Function stopOAuthServer

packages/opencode/src/plugin/digitalocean.ts:136–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134}
135
136function stopOAuthServer() {
137 if (!oauthServer) return
138 oauthServer.close()
139 oauthServer = undefined
140}
141
142function waitForOAuthCallback(state: string): Promise<ImplicitTokenPayload> {
143 return new Promise((resolve, reject) => {

Callers 1

callbackFunction · 0.70

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected