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 .
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.
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.
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.
it is very easy to find. you can find your api key here. go to your firebase project and do 1,2,3 here
Here's how I found it:
Go to: https://console.firebase.google.com/
Under Projects using Firebase
click on the project you want to get the config for or click "Create new Project"
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.
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