Search posts, tags, users, and pages
Anubhav Goyal
R&D Engineer @ Samsung India
Hey!! Let's start the learning process in easy way without wasting time 1. Difference between Authentication and Authorization?? Before moving on, let's first understand the difference between Authentication and Authorization Both Authentication a...
Mohanish Saim
^-^
But how that " process.env.TOKEN_HEADER_KEY " stores token in .env file which is generated by jwt.sign()
Hi Mohanish, .env file is used to store sensitive information which can't be made public.
To store data in .env file, the format is TOKEN_HEADER_KEY=authtokenheaderkey
and through process.env.TOKEN_HEADER_KEY, we can access header key.
Mohanish Saim
^-^
But how that " process.env.TOKEN_HEADER_KEY " stores token in .env file which is generated by jwt.sign()