Fix bound email relogin callback recovery
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user