(state)
| 3604 | } |
| 3605 | |
| 3606 | function getLoginAuthStateLabel(state) { |
| 3607 | if (typeof loggingStatus !== 'undefined' && loggingStatus?.getLoginAuthStateLabel) { |
| 3608 | return loggingStatus.getLoginAuthStateLabel(state); |
| 3609 | } |
| 3610 | state = state === 'oauth_consent_page' ? 'unknown' : state; |
| 3611 | switch (state) { |
| 3612 | case 'verification_page': return '登录验证码页'; |
| 3613 | case 'password_page': return '密码页'; |
| 3614 | case 'email_page': return '邮箱输入页'; |
| 3615 | case 'login_timeout_error_page': return '登录超时报错页'; |
| 3616 | case 'oauth_consent_page': return 'OAuth 授权页'; |
| 3617 | case 'add_phone_page': return '手机号页'; |
| 3618 | default: return '未知页面'; |
| 3619 | } |
| 3620 | } |
| 3621 | |
| 3622 | function isRestartCurrentAttemptError(error) { |
| 3623 | if (typeof loggingStatus !== 'undefined' && loggingStatus?.isRestartCurrentAttemptError) { |
no outgoing calls
no test coverage detected