Skip to content

Commit

Permalink
verifyToken
Browse files Browse the repository at this point in the history
  • Loading branch information
imdeveshshukla committed Sep 3, 2024
1 parent 6d67e88 commit 288676e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/middlewares/verifytoken.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const verifyToken = (req, res, next) => {
req.userId = payload.userId;
req.email = payload.email;
console.log("Token varified");
console.log(JSON.stringify(req));
next();
} else res.status(401).send({ msg: "Invalid Token" });

Expand Down

0 comments on commit 288676e

Please sign in to comment.