SHARE
TWEET

Untitled

a guest Jun 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. passport.serializeUser(function(user, done) {
  2.   console.log('id ser ' + user);
  3.   done(null, user);
  4. });
  5.  
  6. passport.deserializeUser(function(uid, done) {
  7.   console.log('id des ' + uid);
  8.   authentication.user(uid).then(function(user){
  9.     console.log(user);
  10.     done(null, user);
  11.   }).catch(function(err){
  12.     done(err);
  13.   });
  14. });
  15.      
  16. Session {
  17.   cookie:
  18.    { path: '/',
  19.      _expires: 2019-05-24T21:41:31.535Z,
  20.      originalMaxAge: 86400000,
  21.      httpOnly: true },
  22.   passport: { user: 1 } }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top