JWT Authentication Tutorial With Express & MongoDB | Rest API Project | Node.js for Beginners #10

Опубликовано: 16 Октябрь 2024
на канале: Dipesh Malvia
24,131
434

In this video we will continue to build our contact management Rest API project using Express & MongoDb. We will build user registration and login endpoints. We will see how to hash raw passwords and add authentication using JWT sign and verify access token along with protecting routes.

Node.js: The Complete Guide to Build Backend Projects [2023]🔥
Link - https://www.dipeshmalvia.com/courses/...

⭐️ Support my channel⭐️
https://www.buymeacoffee.com/dipeshma...

⭐️ GitHub link for Reference ⭐️
https://github.com/dmalvia/Express_Mo...

⭐️ Node.js for beginners Playlist ⭐️
   • Node.js Tutorial For Beginners  

🔥 Video contents... ENJOY 👇
0:00:00 - Intro
0:00:38 - Adding User Routes - Registration, Login & Current
0:04:22 - Adding User Controller
0:07:53 - Mongoose Schema for User
0:10:40 - User Registration & Password Hashing
0:18:28 - What is JWT ?
0:19:45 - User Login & JWT Access Token
0:26:44 - Protecting Routes - User
0:28:08 - Verify JWT Token Middleware
0:37:43 - Handle Relationship User & Contact Schema
0:39:02 - Protecting Routes - Contact
0:40:11 - Logged in User Get All Contacts
0:41:28 - Logged in User Create New Contact
0:45:02 - Logged in User Update Contact
0:46:17 - Logged in User Delete Contact
0:50:00 - Outro

⭐️ Crash Courses ⭐️
🔗 Nodejs Crash Course -    • Learn Node.js & Express with Project ...  
🔗 React Crash Course -    • Learn React JS with Project in 2 Hour...  
🔗 JavaScript Crash Course -    • JavaScript Tutorial for Beginners | J...  
🔗 HTML5 Crash Course in 1 Hour -    • HTML5 Crash Course for Absolute Begin...  
🔗 CSS Crash Course in 1 Hour -    • CSS Crash Course For Absolute Beginne...  

🔗 Social Medias 🔗
Twitter:   / imdmalvia  
Facebook:   / programmingwithdipesh  
Instagram:   / dipeshmalvia  
LinkedIn:   / dmalvia  

⭐️ Tags ⭐️
Node.js, Express & MongoDB Project
Build Rest API Project Express & MongoDB
JWT & EXPRESS Authentication Crash Course
Express Project For Beginners

⭐️ Hashtags ⭐️
#nodejs #express #beginners #tutorial

Disclaimer:
It doesn't feel good to have a disclaimer in every video but this is how the world is right now.
All videos are for educational purpose and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.