I need help understanding what is the user.id in passport.js serialize function since I figured it would not be the users id from the database since that is referred to as user._id. So which id are we referring to in user.id
passport.serializeUser(function(user, done){
done(null, user.id);
});
Aucun commentaire:
Enregistrer un commentaire