gtramontina/passport-stub — pull request #7 by raohuaming (2014-03-20 05:32:05+00:00)
Title: change the done's signature from (user, res, next) to (user, next)

passport.serializeUser(function(user, done) {
done(null, user.id);
});

passport.deserializeUser(function(id, done) {
User.findById(id, function(err, user) {
done(err, user);
});
});