Offer MFA Code Resend / Send via SMS function
theDevelopper opened this issue · comments
theDevelopper commented
It would be helpful to offer functions that allow to resend the MFA code or send it via different means like the iCloud login does.
I see at least two functions, but there might be more:
-
Resend Code in case it was not received
-
Send code via SMS
On the iCloud login page this triggers a PUT request tohttps://idmsa.apple.com/appleauth/auth/verify/phone
with body
{
"mode": "sms",
"phoneNumber": {
"id": 1
}
}
I would trigger the call myself but it requires a bunch of headers that should be available in the iCloud instance this library creates.