diff --git a/server/initializers/session.js b/server/initializers/session.js index 265e18ca..78a025a5 100644 --- a/server/initializers/session.js +++ b/server/initializers/session.js @@ -31,7 +31,9 @@ module.exports = upgradeInitializer('ah17', { if (!user) { callback(null, false) } - sessionData.user = user + + // store plain user data in session + sessionData.user = user.get({ plain: true }) callback(null, sessionData) }).catch(callback) } else {