diff --git a/server/controllers/middleware/auth/createToken.js b/server/controllers/middleware/auth/createToken.js index 6d3830b..9fa19b1 100644 --- a/server/controllers/middleware/auth/createToken.js +++ b/server/controllers/middleware/auth/createToken.js @@ -1,6 +1,5 @@ const {sign} = require('jsonwebtoken'); module.exports = (req, res, next) => { - //user => object (name, email, phone) const payload = req.user; const accessToken = sign(payload,process.env.ACCESS_TOKEN_SECRET); res.cookie('token', accessToken);