text: const passport = require('passport');
  const LocalStrategy = require('passport-local').Strategy;
  module.exports = (app) => {
    app.use(passport.initialize());
    app.use(passport.session());
  
    passport.serializeUser(function(user, done) {
      done(null, user.id);
    });
  
    passport.deserializeUser(function(id, done) {
      /*User.findById(id, function(err, user) {
        done(err, user);
      });*/
      done(null, { id: id });
    });
  
    passport.use(
      new LocalStrategy(function(username, password, done) {
        /*
      User.findOne({ username: username }, function(err, user) {
        if (err) { return done(err); }
        if (!user) {
          return done(null, false, { message: 'Incorrect username.' });
        }
        if (!user.validPassword(password)) {
          return done(null, false, { message: 'Incorrect password.' });
        }
        return done(null, user);
      });
      */
        return done(null, { id: 'test' });
      })
    );
    app.passport = passport;
  };
  