auth fixes
This commit is contained in:
@@ -12,6 +12,9 @@ const authenticateToken = async (req, res, next) => {
|
||||
});
|
||||
}
|
||||
|
||||
// Log token for debugging (remove in production)
|
||||
console.log('Token received:', token.substring(0, 20) + '...');
|
||||
|
||||
try {
|
||||
const decoded = jwt.verify(token, process.env.JWT_SECRET);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user