Skip to content

fix: restore 2FA for Apple's updated auth flow (2026+)#1335

Open
eukos wants to merge 1 commit intoicloud-photos-downloader:masterfrom
eukos:fix/2fa-auth
Open

fix: restore 2FA for Apple's updated auth flow (2026+)#1335
eukos wants to merge 1 commit intoicloud-photos-downloader:masterfrom
eukos:fix/2fa-auth

Conversation

@eukos
Copy link
Copy Markdown

@eukos eukos commented Apr 19, 2026

Apple changed the 2FA flow around 2026. Two issues needed fixing:

  1. Push trigger: the new flow requires a PUT to /verify/trusteddevice/securitycode (no body) to push the code to trusted devices. The old bridge/step/0 POST approach (PR Fix: 2FA messages are not sent to trusted devices #1327) triggers the code delivery but causes downstream failures.

  2. Phone number parsing: Apple moved trustedPhoneNumbers into bridgeInitiateData.phoneNumberVerification in the auth HTML payload. Fall back to that path when the old path returns nothing.

Apple changed the 2FA flow around 2026. Two issues needed fixing:

1. Push trigger: the new flow requires a PUT to
   /verify/trusteddevice/securitycode (no body) to push the code to
   trusted devices. The old bridge/step/0 POST approach (PR icloud-photos-downloader#1327)
   triggers the code delivery but causes downstream failures.

2. Phone number parsing: Apple moved trustedPhoneNumbers into
   bridgeInitiateData.phoneNumberVerification in the auth HTML payload.
   Fall back to that path when the old path returns nothing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eukos eukos closed this Apr 19, 2026
@eukos eukos reopened this Apr 19, 2026
@lathiat
Copy link
Copy Markdown

lathiat commented Apr 24, 2026

Tested this PR and it works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants