const session = require('express-session');
const RedisStore = require('connect-redis')(session);
const redisClient = require('redis').createClient();

module.exports.verify = (req, res, next) => {
  if (req.isAuthenticated()) {
    return next();
  }
  res.redirect('/login');
};

module.exports.profileRedirect = (req, res, next) => {
  if ( req.isAuthenticated()) {
    res.redirect('/profile');
  }
  return next();
};

module.exports.session = session({
  store: new RedisStore({
    client: redisClient,
    host: 'localhost',
    port: 6379
  }),
  secret: 'more laughter, more love, more life',
  resave: false,
  saveUninitialized: false
});

@@ -141,17 +141,71 @@
 eClient(
-)
+process.env.REDIS_URL) %7C%7C require('redis').createClient
 ;%0A%0Amodul

Add REDIS_URL to createClient as an argument