In this video, we will implement JWT token-based authentication in a Node.js backend, covering essential steps such as:
Changing request headers for secure token transmission
Fetching user details from valid JWT tokens
Adding validations using Express Validator
Understanding how Redux Toolkit works in handling state management
source code
https://github.com/Krishna-sm/SubhViv...
Timestamps:
00:00 intro
00:35 what is JWT Token
03:08 Create JWT Service
05:32 dotenv (.env variables)
07:05 Generate JWT Token
09:09 validate JWT token
12:20 save token on local storage
13:42 request body validation (express validator)
16:10 registerUser Validation Rules
18:00 express validator method
20:50 Thunder client (API Testing)
22:11 profile route (GET)
25:30 Authentication Middleware
34:44 save data into redux
37:59 make redux code easy (with .ts)
41:20 Implement Loading State (uiverse.io)
43:41 outro
Other Popular Videos:
► MongoDB : • How to Create and Connect MongoDB Atl...
► Next JS : • Next Js 14 Complete Full Stack Authe...
► Redux : • Next.js 14 Tutorial: Learn Redux With...
► Inventory Management System : • React Inventory Management System | M...
► Installation of Rust : • How to install Rust in Windows | Rus...
► MERN stack : • MERN Tutorial: Complete MERN Stack | ...
► NEST JS : • Nest JS Complete Tutorial With Projects
► MEVN Stack : • #1 Setup of MEVN Stack | #vue js Proj...
----------------------------------
#reactjs #nextjs #javascript #webdevelopment #webdesign #frontend #backend #tailwindcss #mongodb #fullstack JWT Token Authentication, Redux Toolkit, Express Validator, Node.js, Secure API, State Management, Backend Development
check my Website (https://https://codewithkrishna.vercel.app)
i am creating with next js 14 with node js, express js