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

Function getVerificationPollPayload

background/verification-flow.js:66–89  ·  view source on GitHub ↗
(step, state, overrides = {})

Source from the content-addressed store, hash-verified

64 }
65
66 function getVerificationPollPayload(step, state, overrides = {}) {
67 const is2925Provider = state?.mailProvider === '2925';
68 if (step === 4) {
69 return {
70 filterAfterTimestamp: getHotmailVerificationRequestTimestamp(4, state),
71 senderFilters: ['openai', 'noreply', 'verify', 'auth', 'duckduckgo', 'forward'],
72 subjectFilters: ['verify', 'verification', 'code', '验证码', 'confirm'],
73 targetEmail: state.email,
74 maxAttempts: is2925Provider ? MAIL_2925_VERIFICATION_MAX_ATTEMPTS : 5,
75 intervalMs: is2925Provider ? MAIL_2925_VERIFICATION_INTERVAL_MS : 3000,
76 ...overrides,
77 };
78 }
79
80 return {
81 filterAfterTimestamp: getHotmailVerificationRequestTimestamp(7, state),
82 senderFilters: ['openai', 'noreply', 'verify', 'auth', 'chatgpt', 'duckduckgo', 'forward'],
83 subjectFilters: ['verify', 'verification', 'code', '验证码', 'confirm', 'login'],
84 targetEmail: state.email,
85 maxAttempts: is2925Provider ? MAIL_2925_VERIFICATION_MAX_ATTEMPTS : 5,
86 intervalMs: is2925Provider ? MAIL_2925_VERIFICATION_INTERVAL_MS : 3000,
87 ...overrides,
88 };
89 }
90
91 async function requestVerificationCodeResend(step) {
92 throwIfStopped();

Tested by

no test coverage detected