Cannot login with the Firebase CLI

10,549

Solution 1

Try:

firebase login --interactive

it will open up a browser window to authenticate.

Solution 2

On windows 10, I had issues with my firebase login through cli. I had to run my command line as the administrator and it worked.

Solution 3

In my case was bug in terminal in Visual Studio Code. On CMD terminal it start works.

Share:
10,549
carbontracking
Author by

carbontracking

Still messing with stuff, 26 years into my professional life

Updated on July 25, 2022

Comments

  • carbontracking
    carbontracking almost 2 years

    I have a problem when I try to login to Firebase using the CLI. I installed firebase-tools using npm -g install firebase-tools with admin rights. The steps I do are (from a cygwin terminal on Windows 10 Professional):

    firebase login --no-localhost
    

    After this I get the message:

    Visit the URL on any device....
    Paste authentication code here:
    

    Then, on my browser, I see Google asking if I give Firebase CLI access rights, I say yes and then I get an authorization code displayed on the browser.

    I copy this code into the cygwin console and then:

    Error: Authentication Error.
    

    I'm at a total loss for this and it's completely stalling my efforts to get to know Firebase. All help gratefully appreciated.

  • Wai Ha Lee
    Wai Ha Lee almost 3 years
  • Admin
    Admin about 2 years
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.