I\'m trying to get my Passport local strategy working.
I\'ve got this middleware set up:
passport.use(new LocalStrategy(function(username, password,
If you wrap your routes like so:
module.exports = function(){ router.get('/',(req,res)=>{ res.send('stuff'); } }
You have to pass "app and passport" to your routes like so:
module.exports = function(app,passport){ //routes n stuff }