XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.59k stars 119 forks source link

400 when logging in with Apple ID #285

Open bgeron opened 1 year ago

bgeron commented 1 year ago

Hi! This app looks very nice.

Unfortunately I am unable to login for xcodes. I have time-based 2fa enabled on my Apple ID, and it is managed by my organization.

/Users/bram.geron/src/main〉xcodes version # just downloaded from homebrew
1.3.0
/Users/bram.geron/src/main〉xcodes download '14.3 (14E222b)'
Apple ID: me@example.com
Apple ID Password: <enter password>
Two-factor authentication is enabled for this account.

Enter "sms" without quotes to exit this prompt and choose a phone number to send an SMS security code to.
Enter the 6 digit code from one of your trusted devices: 570 877
Invalid HTTP response (400) for https://idmsa.apple.com/appleauth/auth/verify/trusteddevice/securitycode.
Invalid HTTP response (400) for https://idmsa.apple.com/appleauth/auth/verify/trusteddevice/securitycode.

This is a fresh install from Homebrew, I'm using it for the first time.

bgeron commented 1 year ago

Turns out the problem was the space in my 2FA code.

Feel free to close this issue. Though it's a papercut we could potentially easily fix