text: const jwt = require('jsonwebtoken');
  module.exports = (req, res, next) => {
  	const authHeaders = req.headers.authorization;
  	const token = authHeaders.split('Bearer ')[1];
  	try {
  		jwt.verify(token, process.env.SECRET);
  		next();
  	} catch (error) {
  		return res.status(401).json({ errors: [{ msg: error.message }] });
  	}
  };
  