Skip to content

Commit

Permalink
fix api-key header (remove underscore)
Browse files Browse the repository at this point in the history
  • Loading branch information
zargarzadehm committed Feb 17, 2024
1 parent f79fb72 commit 097c1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getConfig } from '../config/config';
import { uint8ArrayToHex } from '../utils/utils';

const authenticateKey = (req: Request, res: Response, next: NextFunction) => {
const api_key: string = req.header('API_KEY')!;
const api_key: string = req.header('Api-Key')!;
if (
api_key &&
uint8ArrayToHex(blake2b(api_key, undefined, 32)) ==
Expand Down

0 comments on commit 097c1b5

Please sign in to comment.