spee.ch/server/helpers/authHelpers.js

13 lines
385 B
JavaScript
Raw Normal View History

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