Skip to content

Instantly share code, notes, and snippets.

@mikklfr
Created December 15, 2014 11:46
Show Gist options
  • Save mikklfr/c0051925a3539a764cee to your computer and use it in GitHub Desktop.
Save mikklfr/c0051925a3539a764cee to your computer and use it in GitHub Desktop.
app custom
app.get('/auth/' + methodName, function (req, res, next) {
passport.authenticate(methodName, moduleAuth.scope, function (err, user, info) {
req.logIn(user, function (err) {
if (err) {
return next(err);
}
printUser(req, res);
// return res.redirect('/users/' + user.username);
});
})(req, res, next);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment