MCPcopy
hub / github.com/coder/mux / cancelDeviceFlow

Method cancelDeviceFlow

src/node/services/codexOauthService.ts:310–316  ·  view source on GitHub ↗
(flowId: string)

Source from the content-addressed store, hash-verified

308 }
309
310 async cancelDeviceFlow(flowId: string): Promise<void> {
311 const flow = this.deviceFlows.get(flowId);
312 if (!flow) return;
313
314 log.debug(`[Codex OAuth] Device flow cancelled (flowId=${flowId})`);
315 await this.finishDeviceFlow(flowId, Err("OAuth flow cancelled"));
316 }
317
318 async getValidAuth(): Promise<Result<CodexOauthAuth, string>> {
319 const stored = this.readStoredAuth();

Callers 9

disconnectCodexOauthFunction · 0.45
cancelCodexOauthFunction · 0.45
cancelCopilotLoginFunction · 0.45
ProvidersSectionFunction · 0.45
startCopilotLoginFunction · 0.45
routerFunction · 0.45

Calls 4

finishDeviceFlowMethod · 0.95
ErrFunction · 0.90
debugMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected