You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SRP -22406 login failure on Windows (v1.3.1 and v1.4.0-rc.1) after Apple Sep 2026 GSA change #3
Login fails with SRP error -22406 on Windows. The error message says "wrong password" but the password is correct. Per the code in gsa.py, -22406 is ERR_NOT_FULLY_AUTHENTICATED (pending two-factor), not a wrong password.
Versions tested
v1.3.1 (stable)
v1.4.0-rc.1 (prerelease)
Both fail identically.
Repro steps
Open ModStaller on Windows 11
Enter Apple ID (lowercase) and real Apple ID password (not app-specific)
Click Sign In
"Preparing anisette" appears
Enter 2FA code from iPhone when prompted
Spins for a while, then returns to the login screen
Warning shows: "Apple asks for another code after the two-factor confirmation"
What was tried (did not fix)
Used real Apple ID password, not app-specific (app-specific passwords are known unsupported for SRP login)
Email typed in all lowercase
iTunes installed from Apple .exe (not Microsoft Store version)
Renamed/deleted the adi folder at C:\ProgramData\Apple Computer\iTunes
Ran modstaller logout --forget-device (reports "Not signed in", state is clean)
Cleared %AppData%\Roaming\ModStaller and restarted
Checked account.apple.com: no pending actions, no terms to accept
iCloud Advanced Data Protection is OFF
Upgraded from v1.3.1 to v1.4.0-rc.1 (same failure)
Suspected cause
Apple\u0027s September 2026 GSA server change (similar to AltStore PR #1790). The SRP handshake completes the password step but fails at the 2FA confirmation, leaving the session in a pending state (-22406).
Thanks for the detailed report. I looked into it, and here is what I found.
Probably not AltStore #1790. That change is the HTTP 503 Apple returns when X-MMe-Client-Info contains com.apple.dt.Xcode. ModStaller already sends com.apple.akd/1.0, and you get as far as the 2FA prompt, so that block isn't stopping you.
Your reset never actually ran. Two reasons:
modstaller logout --forget-device exits with "Not signed in" before it discards anything if no account is signed in, which is exactly the situation after a failed login. That's a bug, and it's fixed for the next release.
ModStaller doesn't use iTunes' ADI. It emulates its own, so C:\ProgramData\Apple Computer\iTunes\adi has no effect. %AppData%\Roaming\ModStaller only holds the UI's data. The device identity Apple ties the 2FA trust to lives in %LOCALAPPDATA%\modstaller\data\secrets\anisette\.
Windows-specific header problems (also fixed for the next release). During two-factor, the time zone went out as the localized Windows name (e.g. Mitteleuropäische Sommerzeit instead of GMT+2) and the client time was malformed (…+02:00Z). These are now sent the way Apple's own clients send them. The 2FA step also requests a fresh one-time password for the validation, checks Apple's answers properly instead of assuming success, and prints both answers with --debug.
Workaround with your current version:
Quit ModStaller completely, including the window and any background process.
Run modstaller logout --all --forget-device. The --all variant works even when no account is signed in. Alternatively, delete provisioning.bin and device.json from %LOCALAPPDATA%\modstaller\data\secrets\anisette\.
Sign in again and enter the new 2FA code.
If it still fails, please run modstaller login --debug in a terminal and post the output. It lists which fields Apple sends and hides tokens and keys, but please look it over before posting. Please also tell me your Windows display language and time zone.
Update: ran the workaround. modstaller logout --all --forget-device returned "Device identity discarded - on the next login Apple will ask for a 2FA code again." I verified provisioning.bin and device.json are gone from %LOCALAPPDATA%\modstaller\data\secrets\anisette\ (only libs.bin remains).
Signed in again through the app afterward. Apple sent the 2FA code to the iPhone, I entered it, and then the app shows: "Apple asks for another code after the two-factor confirmation. Resetting the provisioning state usually helps: modstaller logout --forget-device". Same failure as before the reset.
Environment you asked for: Windows display language is en-US (English (United States)), time zone is Pacific Standard Time.
Is there anything else worth trying on this version, or is this the Windows header issue awaiting the next release? Happy to run login --debug if the output would still help.
Debug output from modstaller --debug login (note: --debug has to go before the subcommand; login --debug errors with "unrecognized arguments". The -a flag also did not skip the Apple ID prompt). Personal info redacted.
This was after the full reset (logout --all --forget-device, identity files confirmed deleted). So the SRP init succeeds (hsc=200) and the complete step comes back 409 with au='secondaryAuth' both before and after the 2FA code is entered. Windows display language en-US, time zone Pacific Standard Time, as reported earlier.
Thanks, that log was exactly what I needed, and sorry for the detour with the reset.
The cause. Apple answers the complete step with au=secondaryAuth, not trustedDeviceSecondaryAuth. That means Apple wants the login confirmed with a text message to your trusted phone number. ModStaller (up to and including v1.4.0-rc.1) handled every 2FA request the trusted-device way:
It triggered a push, which is the code you saw on your iPhone.
It confirmed that code over GsService2/validate.
For a secondaryAuth session Apple never accepts that confirmation, so the next handshake asks again, which is exactly what your log shows. Neither the Windows headers (en-US / Pacific are plain ASCII) nor the device identity were the problem for you.
The fix will be in the next pre-release. For secondaryAuth, ModStaller now requests the code by SMS and confirms it over Apple's phone verification endpoint, the same way other GrandSlam clients do (e.g. SideStore's apple-private-apis). The code will arrive as a text message, not as a popup on the iPhone, and the code dialog says so.
On your current version there is unfortunately nothing left to try: it has no code path for this kind of confirmation.
Two smaller things from your report:
--debug placement: you were right that it currently has to go before the subcommand (modstaller --debug login). My earlier instruction was wrong. The next version accepts login --debug too and uses -a as the Apple ID for login.
Redaction: thanks for redacting the log. The current --debug output prints a session token (inside t) plus name, email and phone numbers. That token is only valid for an hour, so the one in your run has expired. The next version hides all of these automatically.
When the pre-release is out, I'd appreciate it if you could try modstaller login --debug once more.
Thanks again for the quick diagnosis. Roughly when should I expect the pre-release with the secondaryAuth fix? No pressure on the date, I just want to know when to check back for the debug login retest.
Update: tested v1.4.0-rc.2. The SMS 2FA code arrives and is accepted, but after entering it the login still fails and returns to the sign-in screen. The warning now shows (au=secondaryAuth). So the SMS flow completes but the session still ends in -22406 pending state. The modstaller logout --forget-device reports "Not signed in" (local state is clean). This looks like Apple is still rejecting the secondaryAuth confirmation server-side.
Target device (for later, not relevant to login bug): Apple TV 4K, tvOS 27.2 beta
Interface: UI (GUI) version on Windows 11
The -22406 happens at the Apple ID login step, before any device pairing. The SMS code is received and entered, then it loops back to the sign-in screen with (au=secondaryAuth).
Thanks for the info. I checked it out on my iPhone 16 pro max with my account and it worked fine. Just my session was locked in a expired loop but now worked. I will try to recreate the issue to debug it better :)
Quick question about the -22411 temporary block: after getting this error, how long does it typically take for Apple to lift it? The error message says "about an hour" but after multiple extended blocks from repeated attempts over 2 days, its still active after 8+ hours with no attempts. Is there a known maximum, or does it keep extending? Any guidance on the actual expected wait time would help.
Apple says:
"Apple temporary blocks are typically security measures triggered by too many failed verification attempts, unrecognized devices, or suspicious IP addresses, and they usually lift automatically after a cooldown period of 15–30 minutes or up to 24 hours."
Hi, thanks for checking in. The login issue was never resolved on my end - ModStaller still could not get past the SRP login error. I have since moved to a different tool (atvloadly) that covers what I need, so this no longer blocks me and it is fine to close the issue from my side. Just wanted to confirm the bug itself was still present the last time I used ModStaller. Appreciate you following up.
No Problem. Thanks for your feedback and providing so much logs. I will still investigate the issue. I am sorry that i wasnt able to fix it for you since i cant fully recreate it. I will try to patch it with future versions so might feel free to check out Modstaller later if needed/if you want ^^
Sorry it took this long. I know you've moved on, but since you put so much work into the logs, here is what it was: Apple answered with au=secondaryAuth because the anisette servers introduce themselves as a Mac with macOS 10.12.6. For a Mac that old, Apple takes the text-message route and never really confirms the session, which is exactly the loop in your logs. AltStore and iloader hit the same wall (altstoreio/AltStore#1864). v1.4.1 introduces itself as a current Mac, and Apple then confirms on a trusted device the way it should.
If you ever give ModStaller another try and it still loops, a modstaller login --debug log would be very welcome. Thanks again for all the help!
Activity
Crafttino21 commentedon Oct 9, 2026
Thanks for reporting the issue. I will investigate and fix it asap!
Crafttino21 commentedon Oct 9, 2026
Thanks for the detailed report. I looked into it, and here is what I found.
Probably not AltStore #1790. That change is the HTTP 503 Apple returns when
X-MMe-Client-Infocontainscom.apple.dt.Xcode. ModStaller already sendscom.apple.akd/1.0, and you get as far as the 2FA prompt, so that block isn't stopping you.Your reset never actually ran. Two reasons:
modstaller logout --forget-deviceexits with "Not signed in" before it discards anything if no account is signed in, which is exactly the situation after a failed login. That's a bug, and it's fixed for the next release.C:\ProgramData\Apple Computer\iTunes\adihas no effect.%AppData%\Roaming\ModStalleronly holds the UI's data. The device identity Apple ties the 2FA trust to lives in%LOCALAPPDATA%\modstaller\data\secrets\anisette\.Windows-specific header problems (also fixed for the next release). During two-factor, the time zone went out as the localized Windows name (e.g.
Mitteleuropäische Sommerzeitinstead ofGMT+2) and the client time was malformed (…+02:00Z). These are now sent the way Apple's own clients send them. The 2FA step also requests a fresh one-time password for the validation, checks Apple's answers properly instead of assuming success, and prints both answers with--debug.Workaround with your current version:
modstaller logout --all --forget-device. The--allvariant works even when no account is signed in. Alternatively, deleteprovisioning.binanddevice.jsonfrom%LOCALAPPDATA%\modstaller\data\secrets\anisette\.If it still fails, please run
modstaller login --debugin a terminal and post the output. It lists which fields Apple sends and hides tokens and keys, but please look it over before posting. Please also tell me your Windows display language and time zone.cosmicpretzel commentedon Oct 9, 2026
Update: ran the workaround.
modstaller logout --all --forget-devicereturned "Device identity discarded - on the next login Apple will ask for a 2FA code again." I verified provisioning.bin and device.json are gone from %LOCALAPPDATA%\modstaller\data\secrets\anisette\ (only libs.bin remains).Signed in again through the app afterward. Apple sent the 2FA code to the iPhone, I entered it, and then the app shows: "Apple asks for another code after the two-factor confirmation. Resetting the provisioning state usually helps: modstaller logout --forget-device". Same failure as before the reset.
Environment you asked for: Windows display language is en-US (English (United States)), time zone is Pacific Standard Time.
Is there anything else worth trying on this version, or is this the Windows header issue awaiting the next release? Happy to run
login --debugif the output would still help.cosmicpretzel commentedon Oct 9, 2026
Debug output from
modstaller --debug login(note:--debughas to go before the subcommand;login --debugerrors with "unrecognized arguments". The-aflag also did not skip the Apple ID prompt). Personal info redacted.This was after the full reset (
logout --all --forget-device, identity files confirmed deleted). So the SRP init succeeds (hsc=200) and the complete step comes back 409 withau='secondaryAuth'both before and after the 2FA code is entered. Windows display language en-US, time zone Pacific Standard Time, as reported earlier.Crafttino21 commentedon Oct 9, 2026
Thanks, that log was exactly what I needed, and sorry for the detour with the reset.
The cause. Apple answers the
completestep withau=secondaryAuth, nottrustedDeviceSecondaryAuth. That means Apple wants the login confirmed with a text message to your trusted phone number. ModStaller (up to and including v1.4.0-rc.1) handled every 2FA request the trusted-device way:GsService2/validate.For a
secondaryAuthsession Apple never accepts that confirmation, so the next handshake asks again, which is exactly what your log shows. Neither the Windows headers (en-US / Pacific are plain ASCII) nor the device identity were the problem for you.The fix will be in the next pre-release. For
secondaryAuth, ModStaller now requests the code by SMS and confirms it over Apple's phone verification endpoint, the same way other GrandSlam clients do (e.g. SideStore'sapple-private-apis). The code will arrive as a text message, not as a popup on the iPhone, and the code dialog says so.On your current version there is unfortunately nothing left to try: it has no code path for this kind of confirmation.
Two smaller things from your report:
--debugplacement: you were right that it currently has to go before the subcommand (modstaller --debug login). My earlier instruction was wrong. The next version acceptslogin --debugtoo and uses-aas the Apple ID forlogin.--debugoutput prints a session token (insidet) plus name, email and phone numbers. That token is only valid for an hour, so the one in your run has expired. The next version hides all of these automatically.When the pre-release is out, I'd appreciate it if you could try
modstaller login --debugonce more.cosmicpretzel commentedon Oct 9, 2026
Thanks for the diagnosis, that explains the loop exactly. I will run the debug login again once the pre-release is out and report back.
fix: confirm au=secondaryAuth by text message instead of trusted devi…
cosmicpretzel commentedon Oct 9, 2026
Thanks again for the quick diagnosis. Roughly when should I expect the pre-release with the secondaryAuth fix? No pressure on the date, I just want to know when to check back for the debug login retest.
Crafttino21 commentedon Oct 9, 2026
v1.4.0-rc.2 is now live that should fix the problem
cosmicpretzel commentedon Oct 10, 2026
Update: tested v1.4.0-rc.2. The SMS 2FA code arrives and is accepted, but after entering it the login still fails and returns to the sign-in screen. The warning now shows
(au=secondaryAuth). So the SMS flow completes but the session still ends in -22406 pending state. Themodstaller logout --forget-devicereports "Not signed in" (local state is clean). This looks like Apple is still rejecting the secondaryAuth confirmation server-side.Crafttino21 commentedon Oct 10, 2026
so just for the info to better find the issue:
cosmicpretzel commentedon Oct 10, 2026
The -22406 happens at the Apple ID login step, before any device pairing. The SMS code is received and entered, then it loops back to the sign-in screen with
(au=secondaryAuth).Crafttino21 commentedon Oct 10, 2026
Thanks for the info. I checked it out on my iPhone 16 pro max with my account and it worked fine. Just my session was locked in a expired loop but now worked. I will try to recreate the issue to debug it better :)
fix: use the session an SMS code confirmed; align SMS route with isid…
cosmicpretzel commentedon Oct 10, 2026
Saw the fix commit. I will test the new pre-release immediately once it is out and report back with results right away.
Crafttino21 commentedon Oct 10, 2026
yea feel free. If that dosnt work, i also have alternate patch in petto. But i will go to bed now and fixing it tomorrow ^^
cosmicpretzel commentedon Oct 11, 2026
Quick question about the -22411 temporary block: after getting this error, how long does it typically take for Apple to lift it? The error message says "about an hour" but after multiple extended blocks from repeated attempts over 2 days, its still active after 8+ hours with no attempts. Is there a known maximum, or does it keep extending? Any guidance on the actual expected wait time would help.
Crafttino21 commentedon Oct 14, 2026
Apple says:
"Apple temporary blocks are typically security measures triggered by too many failed verification attempts, unrecognized devices, or suspicious IP addresses, and they usually lift automatically after a cooldown period of 15–30 minutes or up to 24 hours."
Crafttino21 commentedon Oct 20, 2026
Is this issue still happening or can i close the issue report?
cosmicpretzel commentedon Oct 20, 2026
Hi, thanks for checking in. The login issue was never resolved on my end - ModStaller still could not get past the SRP login error. I have since moved to a different tool (atvloadly) that covers what I need, so this no longer blocks me and it is fine to close the issue from my side. Just wanted to confirm the bug itself was still present the last time I used ModStaller. Appreciate you following up.
Crafttino21 commentedon Oct 20, 2026
No Problem. Thanks for your feedback and providing so much logs. I will still investigate the issue. I am sorry that i wasnt able to fix it for you since i cant fully recreate it. I will try to patch it with future versions so might feel free to check out Modstaller later if needed/if you want ^^
Have a nice day/night!
fix: sign in as a current Mac - Apple no longer confirms macOS 10.12 (#3
Crafttino21 commentedon Nov 20, 2026
Sorry it took this long. I know you've moved on, but since you put so much work into the logs, here is what it was: Apple answered with
au=secondaryAuthbecause the anisette servers introduce themselves as a Mac with macOS 10.12.6. For a Mac that old, Apple takes the text-message route and never really confirms the session, which is exactly the loop in your logs. AltStore and iloader hit the same wall (altstoreio/AltStore#1864). v1.4.1 introduces itself as a current Mac, and Apple then confirms on a trusted device the way it should.If you ever give ModStaller another try and it still loops, a
modstaller login --debuglog would be very welcome. Thanks again for all the help!