Stop logging key check in auth middleware
This commit is contained in:
@@ -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' });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user