Thrown when the crypto.subtle API isn't available in the current environment
Description
The crypto.subtle API is required to verify the signature of the incoming requests.
However, it isn't available in all environments. If your environment doesn't support it,
you can provide a ponyfill for it in the ponyfill.subtle option of the WhatsAppAPI
constructor.
Example
newWhatsAppAPI({ appSecret:"your-app-secret", ponyfill: { subtle:my_custom_crypto.subtle }, // other options });
Thrown when the
crypto.subtle
API isn't available in the current environmentDescription
The
crypto.subtle
API is required to verify the signature of the incoming requests. However, it isn't available in all environments. If your environment doesn't support it, you can provide a ponyfill for it in theponyfill.subtle
option of theWhatsAppAPI
constructor.Example
See
importKey
andsign
methods)