text: module.exports = {
    protected: function (req, res, next) {
      if (req.isAuthenticated()) {
        return next();
      } else {
        res.redirect('/');
      }
    },
    guestOnly: function (req, res, next) {
      if (req.isAuthenticated()) {
        res.redirect('/dashboard');
      } else {
        next();
      }
    }
  };
  