firebase / firebase/firebase-tools

CLI confused when you have two Google accounts

Open
#1,995 4 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### [REQUIRED] Environment info

**firebase-tools:**
7.13.1

**Platform:**

Ubuntu

### [REQUIRED] Test case

### [REQUIRED] Steps to reproduce

Login to firebase cli using google account 1 create new project

Select project to use
firebase use --add XXX

Logout and login to a different google account

create new firebase project

firebase init

.....

attempt to deploy said project

linda@linda-ThinkPad-X1-Extreme-2nd:~/development/firebasetest/functions$ firebase serve

Error: Authorization failed. This account is missing the following required permissions on project XXX:

even though .firebaserc contains the project from the current logged in user it does not matter it continues to try and read the one from the first account.

even though `firebase projects:list` does not have this project it continues to try and use it.

### [REQUIRED] Expected behavior

firebase logout and firebase login should clear anything done in firebase use --add XXX to ensure that it is always using the proper project from the currently logged in user.

### [REQUIRED] Actual behavior

firebase logout and firebase login do not effect the current firebase --use settings

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.