Hey Coders In this video you will learn how to use JWT for authentication with react, node, mongodb and express.
JSON web tokens are one of the more popular ways to secure applications, especially in micro-services, but JWT is much more complex than a simple session based user authentication. In this video I will be breaking down exactly how to set up authentication with JWT and how to ensure the authentication is secure.
Source Code :
https://github.com/koolkishan/login-s...
Index CSS Styles : https://gist.github.com/koolkishan/ef...
Subscribe for more! 🔔
https://www.youtube.com/c/kishansheth...
Support me with a donation 🎁
https://www.buymeacoffee.com/koolkish...
Concepts Covered 🧠
Creating Node.js authentication middleware
Authenticating users with JWT
How to use JWT securely
Working with Cookies in React
Working with Cookies in Node.js
Mongoose Middlewares
Private Routes using Cookies and JWT in React
Timestamps ⏱️
00:00 Demo
02:47 Base Setup
13:14 React Router Setup
16:30 Register Functionality with React, Node & MongoDB
57:06 Creating Private Route Page
58:50 Login Functionality with React, Node & MongoDB
01:08:05 Private Route Access based on JWT From Cookie