MERN Stack Authentication with JWT Access, Refresh Tokens, Cookies

MERN Stack Authentication with JWT Access, Refresh Tokens, Cookies

Dave Gray via YouTube Direct link

Authentication vs Authorization

4 of 21

4 of 21

Authentication vs Authorization

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. 1 Intro
  2. 2 Welcome
  3. 3 Quick lessons recap
  4. 4 Authentication vs Authorization
  5. 5 Starter Code
  6. 6 Add auth routes to server
  7. 7 Auth routes router
  8. 8 Rate limiting middleware
  9. 9 Auth controller
  10. 10 Adding controller methods to auth routes
  11. 11 Understanding the JWT auth process
  12. 12 Create token secrets with Node.js
  13. 13 login method in auth controller
  14. 14 refresh method in auth controller
  15. 15 logout method in auth controller
  16. 16 Create middleware to verify JWTs
  17. 17 Apply verifyJWT middleware to routes
  18. 18 Test the login endpoint with Postman
  19. 19 Test the refresh endpoint with Postman
  20. 20 Test the logout endpoint with Postman
  21. 21 Test the verifyJWT middleware with Postman

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.