XcodesOrg / XcodesApp

The easiest way to install and switch between multiple versions of Xcode - with a mouse click.
MIT License
6.88k stars 299 forks source link

[Issue-578] - adjust AuthOptionsResponse parser decode #590

Open anettodev opened 3 months ago

anettodev commented 3 months ago

When the user has a 2FA with security keys (yubikey), the AuthOptionsResponse cannot be parsed because securityCode attribute is not optional and the AuthenticationError.accountUsesUnknownAuthenticationKind is never shown.

The correct authType for security keys is not implemented and needs to check more the documentation for this.

PS: also, I have updated some missing pt-br localization strings @MattKiazyk

Before: Screenshot 2024-07-04 at 00 02 09

After Screenshot 2024-07-04 at 00 02 09

anettodev commented 3 months ago

If someone can provide a better doc about idmsa.apple.com/appleauth/auth, "X-Apple-ID-Session-Id", "scnt", "X-Apple-Widget-Key", I can dig a little more.

Already checked the https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api