2017-10-11 01:00:08 +02:00
|
|
|
const logger = require('winston');
|
|
|
|
|
|
|
|
module.exports = {
|
2017-12-01 02:24:48 +01:00
|
|
|
serializeSpeechUser (user, done) { // returns user data to be serialized into session
|
|
|
|
logger.debug('serializing user');
|
|
|
|
done(null, user);
|
2017-10-11 01:00:08 +02:00
|
|
|
},
|
2017-12-01 02:24:48 +01:00
|
|
|
deserializeSpeechUser (user, done) { // deserializes session and populates additional info to req.user
|
|
|
|
logger.debug('deserializing user');
|
|
|
|
done(null, user);
|
2017-10-11 01:00:08 +02:00
|
|
|
},
|
|
|
|
};
|