Skip to content

Commit

Permalink
Console debug for authMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Zahkklm committed Dec 23, 2024
1 parent fc8e6f4 commit 3560cbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/middleware/authMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const authMiddleware = (req, res, next) => {
try {
// Verify the token and attach the user to the request object
const verified = jwt.verify(token, process.env.JWT_SECRET);
console.log(verified);
req.user = verified;
next(); // Proceed to the next middleware/route handler
} catch (error) {
Expand Down

0 comments on commit 3560cbf

Please sign in to comment.