Been working on this for a few hours now, pretty frustrating...
router.post(\'/\', passport.authenticate(\'local-signup\', function(err, user, info) { co
Mine was spelling mistake issue. I hade usernameFeild: 'email',
usernameFeild: 'email',
However, it should be usernameField: 'email',
usernameField: 'email',