DEV Community

Discussion on: Authentication in NodeJS With Express and Mongo - CodeLab #1

Collapse
 
reillycooper profile image
Jacob Reilly-Cooper • Edited

Hey Vivek,

you need to require auth from the middleware folder in your user.js file:

const auth = require("../middleware/auth");