Fix: 2FA messages are not sent to trusted devices#1327
Open
myMartek wants to merge 2 commits intoicloud-photos-downloader:masterfrom
Open
Fix: 2FA messages are not sent to trusted devices#1327myMartek wants to merge 2 commits intoicloud-photos-downloader:masterfrom
myMartek wants to merge 2 commits intoicloud-photos-downloader:masterfrom
Conversation
Apple moved trustedPhoneNumbers from twoSV.phoneNumberVerification to twoSV.bridgeInitiateData.phoneNumberVerification in their auth page HTML (observed with iOS 26.4+). This caused get_trusted_phone_numbers() to return an empty list, hiding the SMS 2FA option and leaving users with no way to authenticate (since iOS 26 also removed the manual "Get Verification Code" button from Settings). The fix checks both locations, falling back to bridgeInitiateData when the original path returns no results. Fixes icloud-photos-downloader#1322 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
rhoopr
added a commit
to rhoopr/kei
that referenced
this pull request
Apr 2, 2026
Apple now requires a POST to /auth/bridge/step/0 to initiate push notifications for 2FA codes. Without this, some accounts only receive a "website login" email instead of a 2FA code on their trusted devices. Ref: icloud-photos-downloader/icloud_photos_downloader#1327
4 tasks
Easen
added a commit
to Easen/docker-icloudpd
that referenced
this pull request
Apr 5, 2026
This was referenced Apr 8, 2026
Sor85
pushed a commit
to Sor85/icloud_photos_downloader
that referenced
this pull request
Apr 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes the changes from #1325 but also adds another fix for the authentication flow.
It looks like Apple is using /auth/bridge/step/0 as another endpoint in order to actually send push messages with a 2FA code to all trusted devices. I added this request so that the 2FA flow will trigger code generation.