We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e634b6a commit bef702bCopy full SHA for bef702b
messages/signed-webhooks/verify-signed-webhook.js
@@ -1,7 +1,7 @@
1
const jwt = require("jsonwebtoken")
2
const sha256 = require('js-sha256');
3
4
-var decoded = jwt.verify(signature,'SECRET')
+var claims = jwt.verify(signature,'SECRET')
5
if (sha256(payload) != claims["payload_hash"]) {
6
// payload has been tampered with
7
}
0 commit comments