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

Method clearCompleted

src/node/utils/oauthFlowManager.ts:83–92  ·  view source on GitHub ↗
(flowId: string)

Source from the content-addressed store, hash-verified

81 }
82
83 private clearCompleted(flowId: string): void {
84 const existing = this.completed.get(flowId);
85 if (!existing) return;
86
87 if (existing.cleanupTimeout !== null) {
88 clearTimeout(existing.cleanupTimeout);
89 }
90
91 this.completed.delete(flowId);
92 }
93
94 /** Get a flow entry by ID, or undefined if not found. */
95 get(flowId: string): OAuthFlowEntry | undefined {

Callers 2

registerMethod · 0.95
finishMethod · 0.95

Calls 2

getMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected