Skip to content

Security Risk #80

@chtushar

Description

@chtushar

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! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions