eas-cli: Bug: wrong accounts are shown for the currently logged in user

Build/Submit details page URL

No response

Summary

Hi folks,

I eas logout (from userA), then eas login userB, I still see accounts associated with userA when I run eas whomai. Therefore I cannot perform a build for userB, or any other operations for userB

I have specified the:

expo.owner, expo.slug, expo.name and the correct project ID set in expo.extra.eas.projectId in the app.json.

Managed or bare?

managed

Environment

expo-env-info 1.0.5 environment info: System: OS: macOS 14.1 Shell: 5.9 - /bin/zsh Binaries: Node: 21.2.0 - /usr/local/bin/node Yarn: 1.22.21 - /opt/homebrew/bin/yarn npm: 10.2.3 - /usr/local/bin/npm Managers: CocoaPods: 1.14.2 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0 IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.11005911 Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild npmPackages: expo: ~49.0.15 => 49.0.21 react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 react-native: 0.72.6 => 0.72.6 react-native-web: ~0.19.6 => 0.19.9 npmGlobalPackages: eas-cli: 5.9.3 Expo Workflow: bare

Error output

You don’t have the required permissions to perform this operation.

Entity not authorized: AccountEntity[b508eb7a-d846-4e3a-ad6f-3e21616d0150] (viewer = RegularUserViewerContext[19f11aa5-a38e-43c6-8db8-6de6d32b3448], action = READ, ruleIndex = -1) Request ID: a19962bf-dba7-4699-9e1d-60df2fb0607a

Reproducible demo or steps to reproduce from a blank project

% eas whoami userA

Accounts: • account1_userA (Role: Owner) • account2_userA (Role: Developer)

% eas logout Logged out

% eas login

Log in to EAS with email or username (exit and run eas login for other options) ✔ Email or username … userB ✔ Password … *** Logged in

% eas whoami userA

Accounts: • account1_userA (Role: Owner) • account2_userA (Role: Developer)

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Reactions: 1
  • Comments: 17 (4 by maintainers)

Most upvoted comments

I had the same problem. I found out that there was an expo token defined in my .zshrc file. That’s why I could never logout. Hope it helps.

export EXPO_TOKEN=“expo_token”

Hi @melnikovkolya

What I did was create a new accessToken from account B and set that in my .zshrc file. Then just open a new terminal tab or use the source cmd and it should be fine.