JWT Authentication - Node JS and Express Tutorials for Beginners

JWT Authentication - Node JS and Express Tutorials for Beginners

Dave Gray via YouTube Direct link

Creating JWT verification middleware

8 of 23

8 of 23

Creating JWT verification middleware

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

JWT Authentication - Node JS and Express Tutorials for Beginners

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Welcome
  3. 3 JWT Authentication
  4. 4 Set up
  5. 5 Installing new dependencies
  6. 6 Creating environment variables
  7. 7 Creating JWT tokens at authorization
  8. 8 Creating JWT verification middleware
  9. 9 Applying JWT token verification to specific routes
  10. 10 Applying JWT token verification to many routes
  11. 11 Adding cookie-parser middleware
  12. 12 Creating a refresh token controller
  13. 13 Creating the refresh route
  14. 14 Adding the refresh route to the server
  15. 15 Testing the refresh route
  16. 16 Creating a logout controller
  17. 17 Creating the logout route
  18. 18 Adding the logout route to the server
  19. 19 A Quick Debug
  20. 20 Testing the logout route
  21. 21 Frontend: fetch needs the credentials option
  22. 22 Backend: CORS needs Access-Control-Allow-Credentials
  23. 23 Chrome requires specific cookie options

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.