Skip to content

Instantly share code, notes, and snippets.

@samuelcotterall
Forked from anonymous/gist:9cdb18b4cdc80c3b70ae
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelcotterall/46ac28e6cc9a22033a66 to your computer and use it in GitHub Desktop.
Save samuelcotterall/46ac28e6cc9a22033a66 to your computer and use it in GitHub Desktop.
var userInfo = passport.deserializeUser(function(id){
return id;
});
User.findById(userInfo, function(err, user) {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment