MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / finalizeStep8Callback

Function finalizeStep8Callback

background/steps/confirm-oauth.js:59–73  ·  view source on GitHub ↗
(callbackUrl)

Source from the content-addressed store, hash-verified

57 };
58
59 const finalizeStep8Callback = (callbackUrl) => {
60 if (resolved || !callbackUrl) return;
61
62 resolved = true;
63 cleanupListener();
64 clearTimeout(timeout);
65
66 addLog(`步骤 8:已捕获 localhost 地址:${callbackUrl}`, 'ok').then(() => {
67 return completeStepFromBackground(8, { localhostUrl: callbackUrl });
68 }).then(() => {
69 resolve();
70 }).catch((err) => {
71 reject(err);
72 });
73 };
74
75 const timeout = setTimeout(() => {
76 rejectStep8(new Error('120 秒内未捕获到 localhost 回调跳转,步骤 8 的点击可能被拦截了。'));

Callers 1

executeStep8Function · 0.85

Calls 3

cleanupListenerFunction · 0.85
addLogFunction · 0.50

Tested by

no test coverage detected