Repository navigation
Ask for the trusted-device code when Apple will not text one - #9
Open
gregakespret wants to merge 1 commit into
Open
gregakespret wants to merge 1 commit into
gregakespret wants to merge 1 commit into
Conversation
When Apple refuses to text the code, the login now asks for the trusted-device code instead of failing. The 2FA closure takes CodeSentTo (Sms(masked number) or TrustedDevice) in place of Option<&str>; the console callers in src/test.rs ignore it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HW3tPgNjtZokBFXjYn8Qkn
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.
Pins
apple-private-apisat97f8330(gregakespret/apple-private-apis#5). With this pin, a login that Apple refuses to text (PUT /auth/verify/phone→ 423 "This phone number cannot be used at this time") asks for the trusted-device code and checks it throughverify_2fa. Before, it failed withSmsSendFailed.The signature change breaks callers. The 2FA closure is now
Fn(CodeSentTo) -> String, whereCodeSentToisSms(Option<String>)orTrustedDevice, and it replacesFn(Option<&str>). A consumer has to accept the new argument when it bumps. export-findmy uses it to tell the user which code to type. The two console callers insrc/test.rsignore it.The pin must merge after apple-private-apis#5, since it points at that PR's head commit, the same way #8 did.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HW3tPgNjtZokBFXjYn8Qkn