Jade-Marte / final-project

2 stars 2 forks source link

Auth middleware #30

Closed seanc closed 2 years ago

seanc commented 3 years ago

This is middleware that needs to be applied on the node server which checks if the session includes a userId, if so, the user is logged in, otherwise give them an error. This middleware needs to be applied on all routes except for paths: /, /login, and /register