Alexander Leon
1 min readAug 28, 2018

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:

  1. create a.env file
  2. place your variables in that folder
  3. load the values into the app using a library like dotenv (https://www.npmjs.com/package/dotenv).
  4. add the .env file to .gitignore

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Alexander Leon
Alexander Leon

Written by Alexander Leon

I help developers with easy-to-understand technical articles encompassing System Design, Algorithms, Cutting-Edge tech, and misc.

Responses (1)

Write a response