Fix bound email relogin callback recovery

This commit is contained in:
QLHazyCoder
2026-05-20 03:26:08 +08:00
parent fbb66fb5a2
commit 25249e229a
6 changed files with 373 additions and 1 deletions
+15
View File
@@ -89,6 +89,21 @@ function resolveCommandNodeId(message = {}) {
}
const visibleStep = Number(message.payload?.visibleStep || message.step) || 0;
if (visibleStep === 4) return 'fetch-signup-code';
if (message.type === 'FILL_CODE' && (visibleStep === 12 || visibleStep === 15)) {
return 'fetch-bound-email-login-code';
}
if (
(
message.type === 'SUBMIT_PHONE_NUMBER'
|| message.type === 'SUBMIT_PHONE_VERIFICATION_CODE'
|| message.type === 'RESEND_PHONE_VERIFICATION_CODE'
|| message.type === 'CHECK_PHONE_RESEND_ERROR'
|| message.type === 'RETURN_TO_ADD_PHONE'
)
&& (visibleStep === 13 || visibleStep === 16)
) {
return 'post-bound-email-phone-verification';
}
if (visibleStep === 8 || visibleStep === 11) return 'fetch-login-code';
if (visibleStep === 9 || visibleStep === 12) return 'post-login-phone-verification';
if (visibleStep === 10 || visibleStep === 13) return 'confirm-oauth';