expo / expo/eas-cli

Allow selection of Apple Org (or force refresh apple login)

Open
#3,228 1 comment 2 reactions 0 assignees View on GitHub
needs review
Dominant language
TypeScript
Stars
1.4k
Forks
236
Avg merge
3d 1h
Merged PRs (30d)
91

Description

### Build/Submit details page URL

_No response_

### Summary

Following up with #1731 which IMHO was closed with a suggested fix that doesn't resolve the actual issue.

Attempting to submit builds to apple will check your credentials and give you the option to choose an organization. If you have a logged in session and try to push anything else from your expo account, the CLI tool assumes that you want to use the same organization and there is no option to choose a different organization. Per #1731 there is a workaround to delete your cookie file, requiring a new login (and then being able to select the alternate organization): https://github.com/expo/eas-cli/issues/1731#issuecomment-1496916293

I use one apple account that has been granted permissions on two separate organizations. It seems that when I log in (eg am prompted for my password) I have the option to select a team/org. However if I need to build and submit builds for multiple organizations before my session has expired, it presumes to use my last organization which is NOT what I want. I then get "bundle not found" errors etc. How hard would it really be to just add an --org= parameter or similar?

Workarounds like deleting the cookie or deleting distribution credentials are a red herring. The actual issue here (one of them at least) is people getting locked into only being able to use a single org. Please provide a simple way to either force re-auth with apple, or ideally just allow the manual selection of your organization as if you had just logged in.

### Managed or bare?

Bare

### Environment

n/a

### Error output

`The bundle identifier (correct bundle id) is not available to team (the other org I don't want to be using), change it in your app config and try again.`

### Reproducible demo or steps to reproduce from a blank project

n/a

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.