basically this: if (req.isAuthenticated()) { return next(); }