Skip to content

Commit

Permalink
remove line comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ElhamFadel committed Oct 26, 2021
1 parent 836cda1 commit 9205054
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/controllers/middleware/auth/createToken.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 9205054

Please sign in to comment.