How to Create Custom Middlewares in Express.js: User Authentication.

➥ Repo: https://github.com/pragmatic-reviews/express-test/tree/middlewares

Timestamps:

  • Intro - 0:00
  • Reviewing existing Express.js project - 0:38
  • Coding the Assign User middleware - 1:07
  • Attaching the Assign User middleware to the router - 4:02
  • Coding the middleware to check if the user is authenticated - 4:38
  • Attaching the User Authentication middleware to the route - 6:12
  • Testing the User Authentication Middlewares - 6:41
  • Outro - 8:05

#express #node

How to Create Custom Middlewares in Express.js | User Authentication
3.70 GEEK