---
title: "Comment by Mohanish Saim on \"Learn all about JWT Nodejs Authentication in simple way\" | Hashnode"
description: "But how that &quot; process.env.TOKEN_HEADER_KEY &quot; stores token in .env file which is generated by jwt.sign()"
url: "https://hashnode.com/posts/learn-all-about-jwt-nodejs-authentication-in-simple-way/61274a4d71cb04254f06cc30/comment/61e6b246be5d7633af87d6ac"
---

[Discussion](https://hashnode.com/posts/learn-all-about-jwt-nodejs-authentication-in-simple-way/61274a4d71cb04254f06cc30)

Comment [Learn all about JWT Nodejs Authentication in simple way](https://hashnode.com/posts/learn-all-about-jwt-nodejs-authentication-in-simple-way/61274a4d71cb04254f06cc30)

[Mohanish Saim](https://hashnode.com/@mohanish)

[Jan 18, 2022](https://hashnode.com/posts/learn-all-about-jwt-nodejs-authentication-in-simple-way/61274a4d71cb04254f06cc30/comment/61e6b246be5d7633af87d6ac)

But how that " process.env.TOKEN\_HEADER\_KEY " stores token in .env file which is generated by jwt.sign()

[Anubhav Goyal](https://hashnode.com/@DarkStorm)

[Mar 6, 2022](https://hashnode.com/posts/learn-all-about-jwt-nodejs-authentication-in-simple-way/61274a4d71cb04254f06cc30/comment/61e6b246be5d7633af87d6ac#reply-6224c8e7ecb2d35f765e4571)

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.
