Quantcast
Channel: Best practice when using an API key in Node.js - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Jorge Israel Peña for Best practice when using an API key in Node.js

The conventional alternative to what you're doing, especially when pertaining to API keys, is to use environment variables. This is an operating system-level configuration facility. Each process has...

View Article



Best practice when using an API key in Node.js

I have an API key I'm using in my Node.js application. Currently, I keep it stored in a text file and put it in a global variable when my application starts up. Sooo basically it's just: var key =...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images