You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the callback 'function(err, user, info)' doesn't really work
The text was updated successfully, but these errors were encountered:
vcwen
changed the title
defaultCallback has incorrect params for passport.authenticate
BUG:passport-configurator.js: defaultCallback has incorrect params for passport.authenticate
Sep 26, 2015
The loopback-component-passport module uses the Passport custom callback to handle validation. It does this because not all strategies work with the validation handling built in to Passport. Look at the Passport documentation (scroll down to Custom Callback: http://passportjs.org/docs/authenticate
/lib/passport-configurator.js
function: defaultCallback line:423
the third param is a function with params 'req', 'res' which will be called when authentication succeeds, should like below:
but in defaultCallback:
I think the callback 'function(err, user, info)' doesn't really work
The text was updated successfully, but these errors were encountered: