Firebase CLI is not authenticating because Google account is not retaining authorization
Asked Answered
I

2

8

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?

Id answered 9/5, 2017 at 23:36 Comment(0)
I
6

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.

Id answered 16/5, 2017 at 13:58 Comment(3)
Any solutions for those of us in china where google services are blocked and can't do without VPN?Cobby
Same request as @ArthurSiloka, any recs on how to do this while in China?Sorption
mine is the employer laptop windows 11. I cannot run cmd as admin, and also cannot disable the zscaler proxy app that always runs. what should I do to fix this issue?Hypophosphite
S
0

For people based in China

When using a China-working VPN, my authentication would not pass. I was able to circumvent this by buying an eSIM and hot-spotting to my computer, my eSIM provider is Airalo.

Sorption answered 18/5, 2024 at 15:19 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.