Skip to content

Commit

Permalink
fix(js-api-client): it could be only 1 param in get fake body
Browse files Browse the repository at this point in the history
  • Loading branch information
Plopix committed Mar 12, 2024
1 parent c1bc8d4 commit 8b6b6bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/js-api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@crystallize/js-api-client",
"license": "MIT",
"version": "2.2.0",
"version": "2.2.1",
"author": "Crystallize <[email protected]> (https://crystallize.com)",
"contributors": [
"Sébastien Morel <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion components/js-api-client/src/core/verifySignature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const createSignatureVerifier = ({ sha256, jwtVerify, secret }: CreateSig
// we are going to do another check here for the webhook payload situation
if (request.url && request.webhookUrl && request.method && request.method.toLowerCase() === 'get') {
const body = newQueryParams(request.webhookUrl, request.url);
if (Object.keys(body).length > 1) {
if (Object.keys(body).length > 0) {
const newChallenge = {
url: request.webhookUrl,
method: request.method,
Expand Down

0 comments on commit 8b6b6bb

Please sign in to comment.