Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get apiKey to firebase

I need get apiKey to firebase app.

In documentation the example is:

var config = {
      apiKey: '<your-api-key>',
      authDomain: '<your-auth-domain>',
      databaseURL: 'https://tecki.firebaseio.com/',
      storageBucket: '<your-storage-bucket>'
    };
firebase.initializeApp(config);

and look in the console, documentation and not where to find it .

like image 647
Junior Mcq Avatar asked May 27 '16 23:05

Junior Mcq


People also ask

How do I get apiKey and Authdomain Firebase?

You can find it in one of the following ways: Click Authentication and at the upper right side in that page, click Web setup. Otherwise Go to your project overview, click on '+ Add app' button, which you can find next to your project name. After that, select 'web app' or < / > button.

Where is auth key in Firebase?

In the Firebase console, open Settings > Service Accounts. Click Generate New Private Key, then confirm by clicking Generate Key. Securely store the JSON file containing the key.

Is it safe to expose Firebase apiKey to the public?

The apiKey in this configuration snippet just identifies your Firebase project on the Google servers. It is not a security risk for someone to know it. In fact, it is necessary for them to know it, in order for them to interact with your Firebase project.


2 Answers

it is very easy to find. you can find your api key here.  go to your firebase project and do 1,2,3 here

it is very easy to find. you can find your api key here. go to your firebase project and do 1,2,3 here

like image 131
huy Avatar answered Oct 19 '22 14:10

huy


Here's how I found it:

  1. Go to: https://console.firebase.google.com/

  2. Under Projects using Firebase click on the project you want to get the config for or click "Create new Project"

  3. Click the red Add Firebase to your web app button. See image below. Add Firebase to your web app button

Hope that helps.

Good luck.

like image 33
Kai Avatar answered Oct 19 '22 13:10

Kai