PassportJS Custom Authenticate Callback Not Called
问题 Update: The below error was fixed by a commit. I've marked the first answer as 'correct', though the commit was brought to my attention in one of its comments I was hoping to utilize the custom callback to handle both successes and failures for logins in Passport's authenticate local strategy, but it looks like it's only called on success. Here is a snippet of what I'm talking about: passport.use(new LocalStrategy( {usernameField: 'email', passwordField: 'password'}, function(email, password,