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.
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.
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.
You can easily detect if the user is logged or not by executing: var user = firebase. auth().
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.
Try:
firebase login --interactive
it will open up a browser window to authenticate.
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.
In my case was bug in terminal in Visual Studio Code. On CMD terminal it start works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With