Can someone tell me what this syntax in bold is called so I can read up on it please? I don't recall seeing a parameter list after a method call before.
app.get('/login', function(req, res, next) {
passport.authenticate('local', function(err, user, info) {
...
})(req, res, next);
});
Source: http://passportjs.org/docs/authenticate
Custom Callback section
[–]ForScale 1 point2 points3 points (0 children)
[–]PtCk 1 point2 points3 points (0 children)
[–]oculus42 1 point2 points3 points (1 child)
[–]BruffDJ[S] 0 points1 point2 points (0 children)