Skip to content

Commit 4e3092b

Browse files
authored
Merge pull request #105 from madhav2348/remove-logs
remove debug logs
2 parents 0afb934 + ce70924 commit 4e3092b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

backend/middleware/isAuth.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import jwt from "jsonwebtoken";
22

33
const isAuth = (req, res, next) => {
44
const { token } = req.cookies;
5-
console.log("🍪 Cookie Token:", token);
65

76
if (!token) {
87
return res.status(401).json({ message: "Unauthorized: No token" });
@@ -11,7 +10,6 @@ const isAuth = (req, res, next) => {
1110
try {
1211
const decoded = jwt.verify(token, process.env.JWT_SECRET);
1312
req.userId = decoded.userId;
14-
console.log("✅ Authenticated user:", req.userId);
1513
next();
1614
} catch (error) {
1715
return res.status(401).json({ message: "Invalid token" });

0 commit comments

Comments
 (0)