Firebase - What is the API Key
Solution 1
You can generate your api key at https://console.developers.google.com/apis/credentials?project=[YOUR-PROJECT]
Replace [YOUR-PROJECT] with your proyect ID.
Find more information at https://support.google.com/cloud/answer/6158862
regards.
Solution 2
updated the links to the new Firebase website
Your question is very timely, as Firebase just announced its full security suite a few days ago.
There's a nice intro screencast and docs here: https://firebase.google.com/docs/database/security/
The "API Key" is the old name for a Firebase Secret. This is used to generate Authentication Tokens to prove to Firebase who users are. You can see docs on authentication here: https://firebase.google.com/docs/auth/
Solution 3
Follow these steps:
- Login to Firebase Console
- Select your project
- On the top left corner, you'll find Settings icon, click on Project Settings
Sundararajan S
Updated on October 15, 2020Comments
-
Sundararajan S over 3 years
In Firebase, when we sign up , it gives us an API key for each firebase Url. But where is it used in a consuming application? The fireBase API does not provide any means to supply API Key.
Security : What prevents anyone to go ahead and write any object to the given firebase Url? How is the authorization managed?
-
Kato almost 8 yearsFor people looking for the 3.x and above API Key to insert in your initializeApp() config, see docs here: firebase.google.com/docs/web/setup#add_firebase_to_your_app
-
deepelement over 5 yearsGood response at stackoverflow.com/a/37484053/1195652 on why the key isn't a security risk
-
-
Kinka over 11 yearsI did as the document says, but trapped by the error
FirebaseAuthClient is not defined
as I'm trying to use newFirebaseAuthClient()
. So, what's wrong? -
Kinka over 11 yearsOK, I know... I need to add the Firebase Simple Login JavaScript include, but it doesn't tell us where the code exists. However, I found it at github.com/firebase/firetube...
-
Jason Pudzianowski over 11 years^ Is the correct answer. You need to include <script type="text/javascript" src="cdn.firebase.com/v0/firebase-auth-client.js"></…>
-
abbood over 6 yearswhat does this gotta do with firebase?
-
Eliut Islas over 6 yearsEverything. Firebase is a Google product.