Using HttpOnly cookies in React & Node | Storing JWT Tokens or SessionID Securely
Channel: Rahul Ahire
Date: 2020-11-01

In this video, I've explained about how can you use httpOnly cookie. What it means as for your project and how to use it to store your JWT Tokens or Sessions securely. We have used libraries like React, Express, axios, cookie-parser and universal-cookies to demo all of the functionality 

🚨 Important announcement - 

Hi, I just want to let you all know that my first course i.e
The Ultimate DynamoDB Course is now open for all. Make sure to take a free preview with 30 days money back guarantee.
https://rahulahire.thinkific.com/The-Ultimate-DynamoDB-Course

Additional stuffs:
Github Code : https://github.com/MeRahulAhire/httpOnly-cookie-React-Node
Stackoverflow - Make Axios send cookies in its requests automatically : https://stackoverflow.com/questions/43002444/make-axios-send-cookies-in-its-requests-automatically
Cookie Priority : https://stackoverflow.com/questions/19792038/what-does-priority-high-mean-in-the-set-cookie-header

The whole journey of making facemash: https://www.youtube.com/playlist?list=PL83X-jRLQqGGTDlCmLLzgnLpMY3xo1Nj8

Checkout the other videos of DevTalks: https://www.youtube.com/playlist?list=PL83X-jRLQqGGOXn5eJU_JJTlXUyC3gXQB

Timeline:
00:00 - Preface
03:55 - Cookies vs Local Storage vs Session Storage
04:43 - Why use cookies and its features
06:45 - Why HttpOnly Cookies?
08:45 - Demo time- creating cookies in browser
16:42 - Creating httpOnly cookie in backend
23:30 - Using axios to get httpOnly cookies from server
28:00 - How to delete httpOnly cookies?
31:15 - How to use JWT tokens and refresh them with this method
34:00 - Proof of security of HttpOnly cookies
34:50 - End word + your feedback. Like, Share and Subscribe 
If you have any suggestions, Queries or any though just leave it in comment and I'll be happy to get back to you
#httpOnlyCookies #JWT #WebSecurity

FIND ME HERE: 
facebook: https://facebook.com/MeRahulAhire
Instagram: https://instagram.com/merahulahire
Twitter: https://twitter.com/MeRahulAhire
LinkedIn: https://linkedin.com/in/merahulahire