Skip to content

Fix: 2FA messages are not sent to trusted devices#1327

Open
myMartek wants to merge 2 commits intoicloud-photos-downloader:masterfrom
myMartek:bugfix/missing-push-messages
Open

Fix: 2FA messages are not sent to trusted devices#1327
myMartek wants to merge 2 commits intoicloud-photos-downloader:masterfrom
myMartek:bugfix/missing-push-messages

Conversation

@myMartek
Copy link
Copy Markdown

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.

root and others added 2 commits March 22, 2026 10:00
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
Sor85 pushed a commit to Sor85/icloud_photos_downloader that referenced this pull request Apr 12, 2026
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.

1 participant