Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipatool not prompting 2FA code on my devices #224

Closed
jonahdecker opened this issue Sep 12, 2023 · 6 comments
Closed

ipatool not prompting 2FA code on my devices #224

jonahdecker opened this issue Sep 12, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@jonahdecker
Copy link

jonahdecker commented Sep 12, 2023

What happened?

When I run ipatool auth login -email [email protected] (fake email for privacy) and enter my password, I am asked for a 2FA authentication code. However, I am not getting a code on any of my devices. Using the -password flag doesn't work either. This prevents me from being able to download any ipa files.

Version

2.1.3

Relevant log output

jonahdecker@Jonahs-MBP ~ % ipatool -v
ipatool version 2.1.3

jonahdecker@Jonahs-MBP ~ % ipatool auth login -email [email protected]
1:23AM INF enter password:
1:23AM INF enter 2FA code:

1:23AM ERR error="auth code is required" success=false
@jonahdecker jonahdecker added the bug Something isn't working label Sep 12, 2023
@e-ave
Copy link

e-ave commented Sep 16, 2023

I get this too, and when i provide it via --auth-code command line, or try adding it to the end of the password (saw in another issues thread), I get this error

ERR error="Did you forget your password?" success=false

@ahbou
Copy link

ahbou commented Sep 29, 2023

same

@ahbou
Copy link

ahbou commented Sep 29, 2023

Found the issue.
My password has a space in it and since I was passing it using "--password my password" it was being cut out.

@majd
Copy link
Owner

majd commented Oct 11, 2023

Make sure that your credentials are correct. You can also retrieve the 2FA code from an iOS or Mac device that is already logged in via that Apple ID - using the Settings app.

@majd majd closed this as completed Oct 11, 2023
@solidgonk
Copy link

solidgonk commented Oct 31, 2023

If anyone else stumbles on this, try using [email protected] instead of -email [email protected]

@gingerbeardman
Copy link

gingerbeardman commented May 15, 2024

Make sure that your credentials are correct. You can also retrieve the 2FA code from an iOS or Mac device that is already logged in via that Apple ID - using the Settings app.

Settings > Apple ID > Sign-in & Security > Two-Factor Authentication > Get Verification Code


My issue was I was using the wrong command line format, but ipatool doesn't complain when it's incorrect!
And it was still prompting for 2FA after wrong password was used.

When I corrected command line format and password, my devices showed the 2FA popup.

ipatool auth login [email protected] --password=MyPa55w0rd!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants