Fix add-phone handoff and SMS Bower rotation

This commit is contained in:
chick
2026-05-31 01:31:19 +08:00
parent 39af4f9ca4
commit c360e3f569
4 changed files with 65 additions and 6 deletions
+2 -2
View File
@@ -208,9 +208,9 @@
throw new Error(`步骤 ${completionStepForState(currentState)}:邮箱注册模式 OAuth 登录不应进入添加邮箱页。URL: ${result?.url || ''}`.trim());
}
if (isStep7AddPhoneResult(result) || isStep7PhoneVerificationResult(result)) {
payload.skipLoginVerificationStep = true;
payload.addPhonePage = isStep7AddPhoneResult(result);
payload.phoneVerificationPage = isStep7PhoneVerificationResult(result);
payload.directOAuthConsentPage = false;
return payload;
}
if (isStep7PlainVerificationResult(result)) {
@@ -233,8 +233,8 @@
}
await completeNodeFromBackground(state?.nodeId || 'oauth-login', {
loginVerificationRequestedAt: null,
skipLoginVerificationStep: true,
addPhonePage: true,
phoneVerificationPage: false,
directOAuthConsentPage: false,
});
}