Error: Failed to serialize user into session at pass (node_modules/passport/lib/authenticator.js:277:19) at serialized (node_modules/passport/lib/authenticator.js:282:7) at Promise.<anonymous> (routes/passport.js:85:5) at Promise.<anonymous> (node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8) at Promise.emit (events.js:95:17) at Promise.emit (node_modules/mpromise/lib/promise.js:84:38) at Promise.fulfill (node_modules/mongoose/node_modules/mpromise/lib/promise.js:97:20) at Object.cb (node_modules/mongoose/lib/query.js:1146:30) at Object._onImmediate (node_modules/mquery/lib/utils.js:137:16) at processImmediate [as _immediateCallback] (timers.js:345:15)
Error: Failed to serialize user into session at pass (node_modules/passport/lib/authenticator.js:277:19) at serialized (node_modules/passport/lib/authenticator.js:282:7) at Promise.<anonymous> (routes/passport.js:85:5) at Promise.<anonymous> (node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8) at Promise.emit (events.js:95:17) at Promise.emit (node_modules/mpromise/lib/promise.js:84:38) at Promise.fulfill (node_modules/mongoose/node_modules/mpromise/lib/promise.js:97:20) at Object.cb (node_modules/mongoose/lib/query.js:1146:30) at Object._onImmediate (node_modules/mquery/lib/utils.js:137:16) at processImmediate [as _immediateCallback] (timers.js:345:15)