Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot login with the Firebase CLI

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.

like image 821
carbontracking Avatar asked Oct 06 '16 14:10

carbontracking


People also ask

What is firebase CLI?

The Firebase CLI is a utility used to administer Firebase projects and perform tasks such as Realtime Database management tasks from the command-line of a terminal or command-prompt window. The Firebase CLI is also the method by which Firebase Cloud Functions are deployed and managed.

What is the firebase CLI npm module?

The Firebase Command Line Interface (CLI) Tools can be used to test, manage, and deploy your Firebase project from the command line. Deploy code and assets to your Firebase projects. Run a local web server for your Firebase Hosting site. Interact with data in your Firebase database.

How do I check my firebase login status?

You can easily detect if the user is logged or not by executing: var user = firebase. auth().

How do I uninstall firebase?

Go to your Firebase Extensions dashboard, then on the installed extension instance's card, click Manage. At the bottom of the screen, click Uninstall extension. Review what will be deleted, then click Uninstall extension to confirm the deletion.


3 Answers

Try:

firebase login --interactive

it will open up a browser window to authenticate.

like image 123
Pedro Ferreira Avatar answered Oct 19 '22 16:10

Pedro Ferreira


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.

like image 43
blossom-babs Avatar answered Oct 19 '22 17:10

blossom-babs


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

like image 3
Mises Avatar answered Oct 19 '22 15:10

Mises