Back to Browse

Authentication Middleware Deep Dive | Change Password API πŸ”

203 views
Feb 15, 2026
47:46

In this lecture of the Mega Backend Project, we build a secure Change Password API using JWT authentication with Access Tokens and Refresh Tokens, protected by a custom Auth Middleware. You will learn: βœ… How Auth Middleware works using Access Token βœ… Secure Change Password API flow βœ… Validate old password before updating βœ… Hash new password securely βœ… Handle authentication using JWT βœ… Use Access Token & Refresh Token correctly βœ… Real-world password update strategy βœ… Testing Change Password API step by step This lecture is perfect for: βœ” Backend developers βœ” Node.js & Express learners βœ” MERN stack students βœ” Authentication & security learners βœ” Interview preparation (JWT & middleware) 0:00 Introduction | Change Password API (JWT Auth) 0:11 Change Password Flow Explained 4:35 Change Password Business Logic 7:27 Authentication Middleware Flow (Access Token) 14:12 Client Request for Change Password API 17:29 Auth Middleware Logic Explained 24:14 Change Password API Implementation 36:24 Complete Revision & Key Takeaways #ChangePassword #JWT #AuthMiddleware #AccessToken #RefreshToken #BackendDevelopment #NodeJS #ExpressJS #mongodb #WebDevelopment πŸ“Œ Previous Lecture: Login API with Access & Refresh Tokens πŸ“Œ Next Lecture: Reset Password Api πŸ‘ Like, Share & Subscribe for real-world backend system design.

Download

1 formats

Video Formats

360pmp449.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Authentication Middleware Deep Dive | Change Password API πŸ” | NatokHD