I have a webhook that handles inbound SMS using webhooks. I need to verify that the request comes from Vonage by verifying the signature in the request.
The following link indicates how to proceed : Vonage documentation
Here, a full example is given : Github code
Unfortunately, when I try to do the same, the code show the following error.
Property 'generateSignature' does not exist on type 'typeof Vonage'.
When I make a search (grep -r generateSignature) in the sdk code in node_modules, the search gives no result for "generateSignature", there is no mention of this function in their sdk.
The documentation seems wrong.
How to validate the "sig" parameter in the request payload for inbound SMS using Vonage sdk in Typescript/NodeJS?