You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ Messaging and Voice API use different pagination semantics:
81
81
82
82
````javascript
83
83
// list conversations
84
-
//In this case 20 is limit and 0 is offset
84
+
//In this case 20 is limit and 0 is offset
85
85
messagebird.conversations.list(20, 0, function (err, response) {
86
86
if (err) {
87
87
returnconsole.log(err);
@@ -108,19 +108,19 @@ Verifying Signatures
108
108
109
109
For each HTTP request that MessageBird sends, a `MessageBird-Signature-JWT` header is added.
110
110
111
-
The `MessageBird-Signature-JWT` header is a signature that consists of all the information that is required to verify the integrity of the request. The signature is generated from the request URL and request body and is signed with the HMAC-SHA256 algorithm using your your signing key. You can validate this signature using our SDKsto e nsure that the request is valid and unaltered. The token also includes timestamp claims that allow you to prove the time of the request, protecting from replay attacks and the like.
112
-
For more details consult the [documentation](https://developers.messagebird.com/api/#verifying-http-requests).
111
+
The `MessageBird-Signature-JWT` header is a signature that consists of all the information that is required to verify the integrity of the request. The signature is generated from the request URL and request body and is signed with the HMAC-SHA256 algorithm using your your signing key. You can validate this signature using our SDKsto ensure that the request is valid and unaltered. The token also includes timestamp claims that allow you to prove the time of the request, protecting from replay attacks and the like.
112
+
For more details consult the [documentation](https://developers.messagebird.com/api/#verifying-http-requests).
113
113
114
114
Examples:
115
+
115
116
-[full example with Express](./examples/webhook-signature-express-middleware.js)
116
117
-[example in vanilla JS](./examples/webhook-signature-http-node.js)
117
118
118
-
119
119
Let's use Express Signature middleware to verify webhooks.
120
120
121
121
```javascript
122
122
// This example show how to verify the authenticity of a MessageBird webhook.
0 commit comments