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

update 2fa workaround docs #186

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions apple-2fa-sms-issues-workaround.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@
> [!NOTE]
> On 2024-11-15 it was reported that [Apple API was throwing internal server errors while trying to send 2FA SMS codes for American phone numbers, when authenticating through EAS CLI](https://github.com/expo/eas-cli/issues/2698). The Expo team has since updated the EAS CLI to match the new authentication requests. The issue should be fixed in version `14.0.3`.

If you are experiencing persisting issues with Apple SMS 2FA while logging in through EAS CLI, you can use the `device` 2FA method as a workaround.
If you are experiencing persisting issues with Apple SMS 2FA while logging in through EAS CLI, you try the following workarounds:

## How to setup and use `device` 2FA method with EAS CLI
## 1. Remove EAS CLI Apple authentication cache (if you are using EAS CLI version >= `14.0.3`)

Run the following command to remove the Apple authentication cache used by EAS CLI:

```bash
rm -rf ~/.app-store/
```

After removing the cache, try logging in again with the EAS CLI.

## 2. Use `device` 2FA method

Follow [these Apple docs](https://support.apple.com/en-us/102660) to set a trusted device ([for example your Mac](https://github.com/expo/eas-cli/issues/2698#issuecomment-2525401555)) for your Apple account.
Once the trusted device is set up, you can use the `device` 2FA method when prompted `How do you want to validate your account?` in the EAS CLI.
Expand Down