DEV Community

Discussion on: How to hide your API endpoints while making an electron app?

Collapse
 
sarthology profile image
Sarthak Sharma

Let's say I'm using an API from UNSPLASH. They give me two keys. I use a "dotenv" file to store these as environment variables. Even If I make a build of it, that .env file will be in my app folder and hence that will be exposed to users.