Skip to content

Commit

Permalink
Merge pull request #8 from Mirasaki/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Mirasaki authored Feb 15, 2024
2 parents 7af9812 + b786362 commit b594a26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/modules/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const requireAPIKey = (
) => {
const apiKeyHeader = req.headers[X_API_KEY];
if (!apiKeyHeader || apiKeyHeader !== config.API_KEY) {
next(unauthorized);
next(unauthorized());
debugLog(`API key for request ${res.locals.rid} is invalid`);
return;
}
Expand Down

0 comments on commit b594a26

Please sign in to comment.