Skip to content

Instantly share code, notes, and snippets.

Created February 26, 2015 09:33
Show Gist options
  • Save anonymous/9cdb18b4cdc80c3b70ae to your computer and use it in GitHub Desktop.
Save anonymous/9cdb18b4cdc80c3b70ae to your computer and use it in GitHub Desktop.
var userInfo = passport.deserializeUser(function(id, done) {
User.findById(id, function(err, user) {
// req.session.passport.user.
done(err, user);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment