Debug sessions

This commit is contained in:
Kevin Thomas
2021-07-26 16:17:51 -07:00
parent 1be716d85a
commit 9571cd0224
7 changed files with 16089 additions and 52 deletions

View File

@@ -39,12 +39,14 @@ module.exports = function () {
// serializing, and querying the user record by ID from the database when
// deserializing.
passport.serializeUser(function (user, cb) {
console.log('serializing user: ');
process.nextTick(function () {
cb(null, { id: user.id, username: user.username })
})
})
passport.deserializeUser(function (user, cb) {
console.log("DESERIALIZE")
process.nextTick(function () {
return cb(null, user)
})