text: const requireAuth = async (req, res, next) => {
      if (req.isAuthenticated()) {
          next();
      } else {
          res.status(401).json({message: 'Unauthorized'});
      }
  };
  
  export default requireAuth;
  