Skip to content

Commit

Permalink
ExpressMiddlewareVerify stop the callback chain
Browse files Browse the repository at this point in the history
ExpressMiddlewareVerify inner function shouldn't return the result of verify as it stop the callback chain.
  • Loading branch information
dysosmus authored Jun 16, 2022
1 parent ee76ae2 commit 44c26f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webhook-signature-jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function ExpressMiddlewareVerify(secret, opts = DefaultVerifyOptions) {
body = req.body;
}

return verify(url, body, jwt, sk, opts);
verify(url, body, jwt, sk, opts);
}).then(next).catch(err => next(err));
};
}
Expand Down

0 comments on commit 44c26f2

Please sign in to comment.