From 5e3a47f19f24a9925f2bffacd4f5ef9056251568 Mon Sep 17 00:00:00 2001 From: Szymon Dziedzic Date: Mon, 9 Dec 2024 22:23:03 +0100 Subject: [PATCH] update 2fa workaround docs --- apple-2fa-sms-issues-workaround.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/apple-2fa-sms-issues-workaround.md b/apple-2fa-sms-issues-workaround.md index 9b8f7d8..2856749 100644 --- a/apple-2fa-sms-issues-workaround.md +++ b/apple-2fa-sms-issues-workaround.md @@ -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.