The error that I\'m getting:
if (req.isAuthenticated()){ ^ TypeError: Cannot read property \'isAuthenticated\' of undefined