auth fixes

This commit is contained in:
Jake Kasper
2025-08-21 12:49:56 -05:00
parent a4cec36869
commit da43e32ade
3 changed files with 7 additions and 6 deletions

View File

@@ -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);