Fix jwt-token

This commit is contained in:
2025-09-15 06:12:28 +02:00
parent 861801b35a
commit c29a5aed67
2 changed files with 4 additions and 2 deletions

View File

@@ -71,9 +71,9 @@ async function authenticateToken(req, res, next) {
next();
} catch (error) {
console.error('Token verification error:', error);
return res.status(403).json({
return res.status(401).json({
success: false,
message: 'Invalid or expired token'
message: 'Invalid token'
});
}
}