Repository navigation
Pin apple-private-apis: a wrong SMS code can be retyped - #15
Draft
gregakespret wants to merge 1 commit into
Draft
gregakespret wants to merge 1 commit into
gregakespret wants to merge 1 commit into
Conversation
On Apple's -21669 ("Try entering your verification code again.") the
login now asks for the code again for the same text instead of failing
with Bad2faCode. The 2FA closure takes a TfaPrompt (the texted phone,
plus how many codes Apple has refused for this text) and returns
Option<String>; the console callers in src/test.rs ignore the prompt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JvDrSTtCSuxsh3iMaZ8sPX
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.
Line 1's four PRs stay drafts because nothing yet shows Apple accepting a second code in the same sign-in.
Moves the
apple-private-apissubmodule to56f0dea, the head of gregakespret/apple-private-apis#8. With it, a wrong SMS code that Apple will take another try for (-21669) no longer failsAppleAccount::login. The login asks the 2FA prompt again for the same text, and no new text is sent.The 2FA closure becomes
Fn(TfaPrompt) -> Option<String>.TfaPromptcarries the texted phone, as before, andrefused, how many codes Apple has refused for this text. The two console closures insrc/test.rsignore the prompt and wrap their input inSome.cargo check --bin rustpush-test --features macos-validation-datapasses. The library itself has no other callers of the closure.Draft until #8 merges and is verified against Apple. The same sign-in accepting a second code is Apple's invitation ("Try entering your verification code again."), not something a log has shown. Merge order: apple-private-apis#8, then this, then re-pin gregakespret/export-findmy's
Cargo.lockto this branch's merge commit.This conflicts with #9, which changes the same closure argument to
CodeSentTo.🤖 Generated with Claude Code
https://claude.ai/code/session_01JvDrSTtCSuxsh3iMaZ8sPX