I\'m sure I\'m missing something really obvious here, but I can\'t figure this out. The function I\'ve passed to the LocalStrategy constructor doesn\'t get called when the l
To capture both username and passport make sure to add:
username
passport
app.use(express.urlencoded());
In my case, I was using app.use(express.json()); and was posting the username and password from .
app.use(express.json());