spee.ch/server/helpers/authHelpers.js
2018-03-27 16:08:01 -07:00

10 lines
347 B
JavaScript

module.exports = {
serializeSpeechUser (user, done) { // returns user data to be serialized into session
console.log('serializing user');
done(null, user);
},
deserializeSpeechUser (user, done) { // deserializes session and populates additional info to req.user
console.log('deserializing user');
done(null, user);
},
};