Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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