DEV Community

Discussion on: Everything about JWT(JSON Web Tokens) and why it is more powerful than the traditional Session Management ?

Collapse
 
gvsakhil profile image
G.V.S Akhil

Can u post the code thats used to store in a httpOnlyCookie??? I tried a lot but couldn’t find it

Thread Thread
 
gvsakhil profile image
G.V.S Akhil

I found one here thanks medium.com/@ryanchenkie_40935/reac...

Thread Thread
 
deepansharora27 profile image
Deepanshu Arora

Hii @G.V.S Akhil ,

I have worked with JWT in My Recent Project , and if you talk about storing the token in a httpOnlyCookie in the context of Code , then sorry there is no line of code which exactly is clearly signifying that the token is stored in a httpOnlyCookie . I believe that , the jwt package is doing all of the heavy lifting for us in the backend , and even though we are not able to see it in our code , but it is surely being stored in a httpOnlyCookie.
I hope that answers your question