Stop logging key check in auth middleware

This commit is contained in:
2024-08-24 00:00:56 +02:00
parent feaaedf3c5
commit 7055713d4b

View File

@@ -4,7 +4,6 @@ import { logger } from "../globals";
export const authenticate = (req: Request, res: Response, next: NextFunction) => {
const token = req.headers['authorization'];
logger.info(`Checking ${SECRET_KEY} against ${token}`);
if (!token) {
return res.status(403).json({ error: 'No token provided' });
}