Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase CLI is not authenticating because Google account is not retaining authorization

I just downloaded the Firebase CLI (through firebase-tools NPM module) and I'm trying to firebase login. Each time I'm redirected to my browser where I give the Firebase CLI app permissions to my account and I keep getting a screen saying "Firebase CLI Login Failed":

Firebase CLI Login Failed

I've tried running firebase login --no-localhost and that also doesn't seem to work.

Firebase --no-localhost command line

When I look at my Google Account OAuth authorizations (https://myaccount.google.com/permissions), Firebase is not listed. It's as if Google isn't saving my option to allow the Firebase CLI app when I click "Allow" on this screen.

enter image description here

I've tried this on two different Internet connections with two different Google accounts (one Gmail and on G Suite) and the results are the same. Is there anything I'm missing?

like image 723
hjoelr Avatar asked May 09 '17 23:05

hjoelr


People also ask

How do I authenticate on Firebase?

You can sign in users to your Firebase app either by using FirebaseUI as a complete drop-in auth solution or by using the Firebase Authentication SDK to manually integrate one or several sign-in methods into your app. The recommended way to add a complete sign-in system to your app.

What is firebase persistence?

firebase.auth.Auth.Persistence.SESSION. 'session' Indicates that the state will only persist in the current session or tab, and will be cleared when the tab or window in which the user authenticated is closed. Applies only to web apps.


1 Answers

After some more troubleshooting and research I found that Firebase CLI will not authenticate or deploy properly if your computer is behind a proxy. This is a known issue on GitHub. I had a program installed on my computer that monitors all my Internet traffic and it does so using a proxy. Once I uninstalled that program, Firebase CLI was able to authenticate and deploy without an issue.

like image 79
hjoelr Avatar answered Oct 10 '22 04:10

hjoelr