fixing undefined variable

This commit is contained in:
Carlos
2025-04-10 00:32:12 -04:00
parent 267c90eca6
commit c54e4197f2

View File

@ -20,7 +20,7 @@ const validateApiKey = (req, res, next) => {
token = authHeader.split(" ")[1];
}
const providedKey = apiKeyHeader || token;
const providedKey = apiKey || token;
if (!providedKey) {
return res.status(400).json({ error: "API key is missing" });