Stop logging key check in auth middleware
parent
feaaedf3c5
commit
7055713d4b
|
@ -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' });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue