text: const jwt = require('jsonwebtoken');
  require('dotenv').config();
  
  module.exports = async (req) => {
    const token = req.headers.authorization.split(' ')[1];
    const decodedToken = jwt.verify(token, process.env.secretKey);
    console.log(decodedToken);
    return decodedToken.userId;
  };
  