MCPcopy Create free account
hub / github.com/QLHazyCoder/FlowPilot / waitForSignupVerificationTransition

Function waitForSignupVerificationTransition

content/signup-page.js:1153–1168  ·  view source on GitHub ↗
(timeout = 5000)

Source from the content-addressed store, hash-verified

1151}
1152
1153async function waitForSignupVerificationTransition(timeout = 5000) {
1154 const start = Date.now();
1155
1156 while (Date.now() - start < timeout) {
1157 throwIfStopped();
1158
1159 const snapshot = inspectSignupVerificationState();
1160 if (snapshot.state === 'step5' || snapshot.state === 'verification' || snapshot.state === 'error' || snapshot.state === 'email_exists') {
1161 return snapshot;
1162 }
1163
1164 await sleep(200);
1165 }
1166
1167 return inspectSignupVerificationState();
1168}
1169
1170async function prepareSignupVerificationFlow(payload = {}, timeout = 30000) {
1171 const { password } = payload;

Callers 1

Calls 3

sleepFunction · 0.85
throwIfStoppedFunction · 0.70

Tested by

no test coverage detected