Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Hooks and Methods in Mongoose with JWT Integration

Hitesh Choudhary via YouTube

Overview

Explore advanced Mongoose hooks and methods while integrating JWT for secure authentication in a Node.js backend. Learn to implement pre and post hooks for tasks like password encryption with bcrypt before saving to MongoDB. Create custom Mongoose schema methods for password verification and JWT token generation. Enhance backend security by implementing access and refresh tokens for stateless authentication. Follow step-by-step instructions to master middleware, encryption, and token generation techniques, improving the functionality and security of your Node.js applications.

Syllabus

Intro
Middleware
Models
User Model
Methods
Access Token

Taught by

Hitesh Choudhary

Reviews

Start your review of Hooks and Methods in Mongoose with JWT Integration

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.