Skip to content

Commit 1c6d7b1

Browse files
committed
fix(js-api-client): it could be only 1 param in get fake body
1 parent c7bd7d9 commit 1c6d7b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@crystallize/js-api-client",
33
"license": "MIT",
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"author": "Crystallize <[email protected]> (https://crystallize.com)",
66
"contributors": [
77
"Sébastien Morel <[email protected]>",

src/core/verifySignature.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const createSignatureVerifier = ({ sha256, jwtVerify, secret }: CreateSig
4848
// we are going to do another check here for the webhook payload situation
4949
if (request.url && request.webhookUrl && request.method && request.method.toLowerCase() === 'get') {
5050
const body = newQueryParams(request.webhookUrl, request.url);
51-
if (Object.keys(body).length > 1) {
51+
if (Object.keys(body).length > 0) {
5252
const newChallenge = {
5353
url: request.webhookUrl,
5454
method: request.method,

0 commit comments

Comments
 (0)