Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase login:use doesn't switch accounts #3775

Closed
dnadawa opened this issue Sep 23, 2021 · 3 comments
Closed

firebase login:use doesn't switch accounts #3775

dnadawa opened this issue Sep 23, 2021 · 3 comments
Assignees

Comments

@dnadawa
Copy link

dnadawa commented Sep 23, 2021

Environment info

firebase-tools: 9.18.0

Platform: Windows

Test case

Login into firebase CLI using 2 different accounts, but cannot switch between them. Only 1st logged account is always used.

Steps to reproduce

  1. Login to the 1st account: firebase login
  2. Login to the 2nd account: firebase login:add
  3. View default account: firebase login:list
  4. Switch to 2nd account: firebase login:use <2nd account email address>
  5. View accounts: firebase login:list (default account doesn't change)

Expected behavior

Switch default account to the 2nd account

Actual behavior

When using firebase login:use <2nd account email address> it prints that it successfully switched account. (Figure 1)
But it is not. When we try to deploy the web using firebase deploy --only hosting it prints that the logged account doesn't have permissions. (Figure 2)

image
(Figure 1)

image
(Figure 2)

@draperunner
Copy link

Duplicate of #3759

@bkendall
Copy link
Contributor

Yup, this is a duplicate of #3759. Thanks for raising though - newer versions of the CLI should have this fixed already.

@bkendall
Copy link
Contributor

Duplicate of #3759

@bkendall bkendall marked this as a duplicate of #3759 Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants