apiKey,
authDomain,
databaseURL,
projectId,
storageBucket,
messagingSenderId,
appId
are visible here.
Kindly fix this issue as it seems to be a High Security Risk. This information should be kept confidential.
Solution:
- Create a separate file called firebaseConfig.js.
- Add your details
const firebaseConfig = {
apiKey: "Axxxxxxxxxxxxxxxxxxx",
authDomain: "xxxxxx.firebaseapp.com",
databaseURL: "https://xxxxxxxx.firebaseio.com",
projectId: "xxxxxxxxx",
storageBucket: "xxxxxxx.appspot.com",
messagingSenderId: "xxxxxxxxxxx",
appId: "1:xxxxxxxxx:web:xxxxxxx"
}
module.exports = firebaseConfig
- Import file firebaseConfig.js in firebase.js
- Add following line of code in .gitignore file in root directory.
firebaseConfig.js
- And Commit, issue will be solved!
Happy Hacking! :)
apiKey,
authDomain,
databaseURL,
projectId,
storageBucket,
messagingSenderId,
appId
are visible here.
Kindly fix this issue as it seems to be a High Security Risk. This information should be kept confidential.
Solution:
firebaseConfig.jsHappy Hacking! :)