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/e/311926 🔥 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/Nodejs-Zero-to-Hero ⭐️ Node.js for beginners Playlist ⭐️ https://youtube.com/playlist?list=PLTP3E5bPW796_icZanMqhdg7i0Cl7Y51F ⭐️ Related Videos ⭐️ 🔗 Learn VITE For Next React - https://youtu.be/-fj1loJfSdA 🔗 React Firebase CRUD App - https://youtu.be/cXWDQhzC3do 🔗 React Firebase Auth with Context API - https://youtu.be/6kgitEWTxac 🔗 React Context API - https://youtu.be/zHYkA1AycPs 🔗 CSS Crash Course in 1 Hour - https://youtu.be/nYsk_U_A_lc ⭐️ Crash Courses ⭐️ 🔗 Nodejs Crash Course - https://youtu.be/H9M02of22z4 🔗 React Crash Course - https://youtu.be/0riHps91AzE 🔗 JavaScript Crash Course - https://youtu.be/sptS-bgg8Ro 🔗 HTML5 Crash Course in 1 Hour - https://youtu.be/Aj3QFsmsagc 🔗 CSS Crash Course in 1 Hour - https://youtu.be/nYsk_U_A_lc 🔗 Social Medias 🔗 Twitter: https://twitter.com/IMDmalvia Facebook: https://www.facebook.com/programmingwithdipesh Instagram: https://www.instagram.com/dipeshmalvia LinkedIn: https://www.linkedin.com/in/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.