0

This is a newbie question. I'm currently working on a twitter clone and added my firebase API endpoint to package.json to use with axios.

"proxy": "https://europe-west1-APPNAME-RANDOMNUMBERS.cloudfunctions.net/api"

Before pushing my code to Github, should I hide the endpoint? If yes, how can I do that? For other types of sensitive data, I have a git-ignored config file but I'm not sure about how to fix this one.

Heysem
  • 86
  • 8

2 Answers2

0

No, they will be able to see this when they use your website.

Paul McLoughlin
  • 2,279
  • 2
  • 18
  • 24
0

Is it safe to expose Firebase apiKey to the public?

This should answer your question :)

The Key ist just an Identifier for the App, not the User of the App himself.

NyghtX
  • 1
  • 2