I have a very simple query and update using mongoose that is not working.
router.get("/logout", auth, (req, res) => { console.log(req.user.email)