spee.ch/server/helpers/authHelpers.js

11 lines
347 B
JavaScript
Raw Normal View History

2018-03-28 01:08:01 +02:00
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);
},
};