Stop logging key check in auth middleware

main
Talon 2024-08-24 00:00:56 +02:00
parent feaaedf3c5
commit 7055713d4b
1 changed files with 0 additions and 1 deletions

View File

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