Thanks a lot for the compliment! And yes, I too had to piece things together at one point, so figured it would be a good thing to write about. Ah, the plights of authentication.
I’m guessing you figured it out by now, but just in case + for other readers following along, one approach is:
- create a.env file
- place your variables in that folder
- load the values into the app using a library like dotenv (https://www.npmjs.com/package/dotenv).
- add the .env file to .gitignore