Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get "firebase login" to work from Google Cloud Shell

I logged into Google Cloud Shell and found that that the Firebase CLI is already installed.

I then tried to run "firebase list" to see that it was working and was prompted to login.

"Visit this URL on any device to log in:" <very long URL>

I copy/pasted the URL into a browser and got the standard "Firebase CLI would like to:" prompt from Google but when I approved it by clicking the "Allow" button, it failed.

This is the error page that showed.

This site can’t be reached
localhost refused to connect.
Search Google for localhost 9005
ERR_CONNECTION_REFUSED

like image 464
Art Avatar asked Jun 10 '16 00:06

Art


People also ask

How do I authenticate with Google Firebase?

In the Firebase console, open the Auth section. On the Sign in method tab, enable the Google sign-in method and click Save.

Is Firebase integrated with Google Cloud Platform?

Yes! Firebase is Google's mobile development platform that empowers you to quickly build and grow your app. It's built so that you're able to easily pull in Google Cloud products as your team or infrastructure needs grow.

Do you need a Google account for Firebase?

Make sure that you're signed into Firebase using the same Google account that has access to the project.


1 Answers

Run the following command in your terminal:

firebase login --no-localhost 

This will return a url that you can copy in the browser. After completing the steps, you'll receive back a code which you paste in the terminal.

like image 139
user1677230 Avatar answered Sep 27 '22 21:09

user1677230