(reason, snapshot, options = {})
| 1048 | } |
| 1049 | |
| 1050 | function createStep6RecoverableResult(reason, snapshot, options = {}) { |
| 1051 | return { |
| 1052 | step6Outcome: 'recoverable', |
| 1053 | reason, |
| 1054 | state: snapshot?.state || 'unknown', |
| 1055 | url: snapshot?.url || location.href, |
| 1056 | message: options.message || '', |
| 1057 | loginVerificationRequestedAt: options.loginVerificationRequestedAt || null, |
| 1058 | }; |
| 1059 | } |
| 1060 | |
| 1061 | function normalizeStep6Snapshot(snapshot) { |
| 1062 | if (snapshot?.state !== 'oauth_consent_page') { |
no outgoing calls
no test coverage detected