Completed
Auth routes router
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
MERN Stack Authentication with JWT Access, Refresh Tokens, Cookies
Automatically move to the next video in the Classroom when playback concludes
- 1 Intro
- 2 Welcome
- 3 Quick lessons recap
- 4 Authentication vs Authorization
- 5 Starter Code
- 6 Add auth routes to server
- 7 Auth routes router
- 8 Rate limiting middleware
- 9 Auth controller
- 10 Adding controller methods to auth routes
- 11 Understanding the JWT auth process
- 12 Create token secrets with Node.js
- 13 login method in auth controller
- 14 refresh method in auth controller
- 15 logout method in auth controller
- 16 Create middleware to verify JWTs
- 17 Apply verifyJWT middleware to routes
- 18 Test the login endpoint with Postman
- 19 Test the refresh endpoint with Postman
- 20 Test the logout endpoint with Postman
- 21 Test the verifyJWT middleware with Postman