title: Failed authentication in Apple Developer Portal when execute expo build:ios
body: <p>I'm trying to config automatically <strong>build iOS apps using Expo through Gitlab-CI</strong>.
  This are the commands that I am using:</p>
  
  <pre><code>expo login -u expo_user -p expo_pass
  expo build:ios --non-interactive --apple-id my_id@domain.com --clear-dist-cert --clear-provisioning-profile --dist-p12-path "path_to_file.p12" --provisioning-profile-path "path_to_file.mobileprovision"
  </code></pre>
  
  <p>I am already passing the respective values of this env vars:</p>
  
  <pre class="lang-sh prettyprint-override"><code>EXPO_APPLE_PASSWORD
  EXPO_IOS_DIST_P12_PASSWORD
  </code></pre>
  
  <p>During the 2nd command execution it launch this logs:</p>
  
  <pre class="lang-sh prettyprint-override"><code>[14:24:23] Trying to authenticate with Apple Developer Portal...
  [14:24:25] Authentication with Apple Developer Portal failed!
  [14:24:25] Error: Reason: Unknown reason, raw: "&lt;html&gt;\r\n&lt;head&gt;&lt;title&gt;502 Bad Gateway&lt;/title&gt;&lt;/head&gt;\r\n&lt;body&gt;\r\n&lt;center&gt;&lt;h1&gt;502 Bad Gateway&lt;/h1&gt;&lt;/center&gt;\r\n&lt;hr&gt;&lt;center&gt;Apple&lt;/center&gt;\r\n&lt;/body&gt;\r\n&lt;/html&gt;\r\n\n"
      at runAction (/expo-cli@3.13.1/src/appleApi/fastlane.ts:28:17)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
      at Object.authenticate (/expo-cli@3.13.1/src/appleApi/authenticate.ts:46:40)
      at IOSBuilder.getAppleCtx (/expo-cli@3.13.1/src/commands/build/ios/IOSBuilder.js:47:23)
      at IOSBuilder.produceMissingCredentials (/expo-cli@3.13.1/src/commands/build/ios/IOSBuilder.js:123:22)
      at IOSBuilder.prepareCredentials (/expo-cli@3.13.1/src/commands/build/ios/IOSBuilder.js:65:7)
      at IOSBuilder.run (/expo-cli@3.13.1/src/commands/build/ios/IOSBuilder.js:19:7)
      at IOSBuilder.command (/expo-cli@3.13.1/src/commands/build/BaseBuilder.js:55:7)
      at Command.&lt;anonymous&gt; (/expo-cli@3.13.1/src/exp.ts:81:7)
  </code></pre>
  
  <p>The Apple Developer account that I am using have configured the <strong>Two Factor Authentication (2FA)</strong>.</p>
  
  <p>Is this the reason why the expo <code>build:ios</code> command is failing the auth against Apple Portal?
  What am I missing in this commands?</p>
  
  <p>PS: These commands on my laptop works fine!</p>