text: (() => {
  
    const passport = require('passport');
    const knex = require('../db/connection');
  
    module.exports = () => {
      passport.serializeUser((user, done) => { done(null, user.id); });
      passport.deserializeUser((id, done) => {
        return knex('users').select('*').where({ id })
        .then((user) => { done(null, user[0]); })
        .catch((err) => { done(err); });
      });
    };
  
  })();
  