(setupUrl)
| 2951 | } |
| 2952 | |
| 2953 | async function validateIcloudSession(setupUrl) { |
| 2954 | const data = await icloudRequest('POST', `${setupUrl}/validate`); |
| 2955 | if (!data?.webservices?.premiummailsettings?.url) { |
| 2956 | throw new Error('Could not validate iCloud session. Hide My Email service was unavailable.'); |
| 2957 | } |
| 2958 | return data; |
| 2959 | } |
| 2960 | |
| 2961 | async function resolveIcloudPremiumMailService() { |
| 2962 | const errors = []; |
no test coverage detected