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

Function ensureStep7VerificationPageReady

background.js:5898–5907  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5896}
5897
5898async function ensureStep7VerificationPageReady() {
5899 const pageState = await getLoginAuthStateFromContent();
5900 if (pageState.state === 'verification_page') {
5901 return pageState;
5902 }
5903
5904 const stateLabel = getLoginAuthStateLabel(pageState.state);
5905 const urlPart = pageState.url ? ` URL: ${pageState.url}` : '';
5906 throw new Error(`当前未进入登录验证码页面,请先重新完成步骤 6。当前状态:${stateLabel}.${urlPart}`.trim());
5907}
5908
5909async function skipLoginVerificationStepsForCpaCallback() {
5910 await setState({

Callers 1

runStep7AttemptFunction · 0.85

Calls 2

getLoginAuthStateLabelFunction · 0.70

Tested by

no test coverage detected