Been working on this for a few hours now, pretty frustrating...
router.post(\'/\', passport.authenticate(\'local-signup\', function(err, user, info) { co
if you are using passport local mongoose as a plugin with your user model.
Try this:
passport.use(new LocalStrategy({ usernameField: 'email' }, User.authenticate()));