diff --git a/packages/gateway/src/http/hmac.ts b/packages/gateway/src/http/hmac.ts index 5da11116..5443ef54 100644 --- a/packages/gateway/src/http/hmac.ts +++ b/packages/gateway/src/http/hmac.ts @@ -73,7 +73,7 @@ export function checkTimestamp( const parsedMs = Date.parse(timestampHeader) // Date.parse returns NaN for unparseable strings - if (!Number.isFinite(parsedMs)) { + if (Number.isFinite(parsedMs) === false) { return {ok: false, reason: 'timestamp_expired'} }