Install and require express-async-errors earlier

This commit is contained in:
Tuan Dang
2023-05-28 22:23:26 +03:00
parent 3a76a82438
commit e90f63b375
7 changed files with 19 additions and 78 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ const validateAuthMode = ({
}) => {
const apiKey = headers['x-api-key'];
const authHeader = headers['authorization'];
let authMode, authTokenValue;
if (apiKey === undefined && authHeader === undefined) {
// case: no auth or X-API-KEY header present