XcodesApp
XcodesApp copied to clipboard
[Issue-578] - adjust AuthOptionsResponse parser decode
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:

After
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
@anettodev support for authentication keys have been added in https://github.com/XcodesOrg/XcodesApp/pull/617 so I'm going to close this PR.