eas-cli icon indicating copy to clipboard operation
eas-cli copied to clipboard

Cannot login to an Apple Developer account with security keys enabled

Open darnfish opened this issue 2 years ago • 19 comments

Summary

It is currently impossible to sign into an Apple ID with Security Keys as a 2FA method using eas or any Expo cli. The following error is returned:

Authentication with Apple Developer Portal failed!
    UnexpectedAppleResponse: Apple servers indicated Two-factor authentication or Two-step verification are required, but Expo cannot handle the
     response: [object Object]

The only remedy for this right now is to remove security keys from the Apple ID.

What platform(s) does this occur on?

No response

SDK Version

No response

Environment

expo-env-info 1.0.5 environment info: System: OS: macOS 13.1 Shell: 3.6.0 - /opt/homebrew/bin/fish Binaries: Node: 18.14.0 - ~/.nvm/versions/node/v18.14.0/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 9.3.0 - /opt/homebrew/bin/npm Watchman: 2022.02.28.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 IDEs: Android Studio: 2022.1 AI-221.6008.13.2211.9477386 Xcode: 14.2/14C18 - /usr/bin/xcodebuild npmGlobalPackages: eas-cli: 3.6.0 expo-cli: 6.3.1

Minimal reproducible example

  1. Add Security Keys to an Apple ID in Settings > Apple ID > Password & Security
  2. Try to login when interacting with expo/eas
  3. Observe an error

darnfish avatar Feb 18 '23 08:02 darnfish