Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to store API key? #270

Open
Matt-Hill-83 opened this issue May 25, 2019 · 2 comments
Open

Where to store API key? #270

Matt-Hill-83 opened this issue May 25, 2019 · 2 comments

Comments

@Matt-Hill-83
Copy link

Hi,
First, great work on such a thoroughly built app!
I'm new to most of this stuff, but it seems risky to store your API key in your client code in App.js
Is there a way to adapt this architecture so that your API Key is store somewhere else, perhaps in a Firebase 'function' in the cloud?

Thanks~

  • matt
@dpw1
Copy link

dpw1 commented Jun 15, 2019

You should use Dotenv to store sensitive information. Take a look at the documentation and you ought to find your way around fairly easy. :)

@ghost
Copy link

ghost commented Jun 16, 2019

If you are going to use create-react-app, you can just use the React default one https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables Not sure if it's safe tho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants