text: var expressJwt = require("express-jwt");
  
  //Protected Routes
  exports.isSignedIn = expressJwt({
    secret: process.env.SECRET,
    userProperty: "auth",
  });
  
  exports.isAuthenticated = (req, res, next) => {
    let checker = req.profile && req.auth && req.profile._id == req.auth._id;
    if (!checker) {
      return res.status(403).json({
        error: "ACCESS DENIED",
      });
    }
    next();
  };
  