Build Multi-Factor Authentication Project in Node.js & Express | Passport.js, Speakeasy 2FA Tutorial
Dipesh Malvia Dipesh Malvia
84K subscribers
3,375 views
215

 Published On Oct 3, 2024

Multi-factor authentication (MFA) is a security method that requires users to provide at least two different forms of identification to access a system.

In this video we will build a Two-Factor Authentication system using Node.js, Express, Speakeasy and Passport.js.

In this project, we’ll learn how to secure user accounts with 2FA, improving the overall security of our applications.

⭐️ Full Source Code ⭐️
https://buymeacoffee.com/dipeshmalvia...

🔥 Video contents... ENJOY 👇
0:00:00 - Intro
0:00:45 - Project Overview
0:04:00 - Project Setup & Dependencies
0:08:45 - Passport.js & Speakeasy Overview
0:11:04 - Create Express Server
0:14:14 - Middleware and Session config
0:18:02 - MongoDB connection
0:22:18 - Mongoose User Model
0:25:10 - Authentication & MFA Routes Setup
0:28:42 - Authentication & MFA Controller Setup
0:30:06 Register User
0:34:34 - Login User - Passport Config
0:43:17 - Serialize & Deserialise User Passport Session
0:46:07 - AuthStatus & Logout User
0:50:24 - isAuthenticated Middleware MFA Routes
0:53:04 - Setup 2FA
1:01:31 - Verify & Reset 2FA
1:05:18 - Testing on Thunder client
1:07:05 - Testing on Postman
1:09:50 - Outro

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

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

⭐️ Related Videos ⭐️
🔗 Learn VITE For Next React -    • Learn Vite For Next React TypeScript ...  
🔗 React Firebase CRUD App -    • Complete React Firebase CRUD Project ...  
🔗 React Firebase Auth with Context API -    • React Firebase Authentication Crash C...  
🔗 React Context API -    • React Context API Tutorial For Beginn...  
🔗 CSS Crash Course in 1 Hour -    • CSS Crash Course For Absolute Beginne...  

⭐️ 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 User Authentication Project
Build Rest API Authentication & Authorization Project Using Express & MongoDB
Node.js, Speakeasy, Passport.js & EXPRESS Authentication Crash Course
Express Two-Factor Authentication Project For Beginners


⭐️ Hashtags ⭐️
#nodejs #authentication #beginner #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.

show more

Share/Embed