Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
How to Logout Users in Express with MySQL (Session + JWT)
Play lesson

Node JS Tutorial for Beginners in Hindi - 2025 - How to Logout Users in Express with MySQL (Session + JWT)

5.0 (2)
26 learners

What you'll learn

This course includes

  • 35.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

🔥 Access Source Code, PPT & Notes here for Free : https://www.thapatechnical.com/2024/11/introduction-to-nodejs.html ------------------------------------------------------------------------ In this video, I’ll show you how to implement a secure logout system in our Express app with MySQL. Previously, we only cleared the access token to log users out, but now with hybrid authentication (Session + JWT), we also need to clear the session and refresh token. This ensures users are fully logged out and cannot reuse old tokens. 📺 Watch the complete Node.JS Playlist here :https://youtube.com/playlist?list=PLwGdqUZWnOp3KELplHtc-RnJ5xTUPqdgH&si=_ob8F88HYxCdspup By the end of this video, you'll understand: ✅ Why clearing only the access token isn't enough ✅ How to properly remove sessions & refresh tokens from the database ✅ Implementing logout functionality step by step ✅ Testing to ensure the logout process works ------------------------------------------------------------------------ 🚀 Boost Your Skills with these Pre-Requisite Videos: 🔗 Best HTML Course - https://youtu.be/5ccq_nLHneE 🔗 Best CSS Course - https://youtu.be/MSICFljRcb4 🔗 JavaScript Basics Course Part 1 - https://youtu.be/13gLB6hDHR8 🔗 JavaScript Advanced Course Part 2 - https://youtu.be/YwsOCN8woA8 ------------------------------------------------------------------------ 💸 Build Your Own E-commerce Website for Free! - https://www.thapatechnical.com/2024/03/build-complete-ecommerce-website-using.html ------------------------------------------------------------------------ ✌️ Join Us! 🚀 Become a Member: Unlock perks, free source code, and more Join Now : https://www.youtube.com/channel/UCwfaAHy4zQUb2APNOGXUCCA/join 📷 Connect on Instagram: https://www.instagram.com/thapatechnical 🗨️ Join Our Discord Server: Hang out with fellow programmers Discord Link: https://discord.gg/MdScmCsua6 ------------------------------------------------------------------------ ⌛TIMELINE⏳ 0:00 – Wishing You a Happy Holi 🎉 🔗 0:42 – Access Source Code 💡 1:30 – How Logout Works (Theory) 📝 2:15 – Writing Logout Code 🗑 2:35 – Clearing Session & Refresh Token on Logout ✅ 5:00 – Checking if Logout is Working 👀 5:40 – Demonstrating How Logout Works 🚀 6:25 – Next Video Updates 👋 7:45 – Outro

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

FAQs

Course Hive
Download CourseHive
Keep learning anywhere