Class WhatsAppAPIMissingCryptoSubtleError

Thrown when the crypto.subtle API isn't available in the current environment

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.

new WhatsAppAPI({
appSecret: "your-app-secret",
ponyfill: {
subtle: my_custom_crypto.subtle
},
// other options
});

Hierarchy (View Summary)

Properties

Accessors

Methods

Properties

httpStatus: number

The HTTP status code of the error

Accessors

  • get docs(): string
  • Returns string

Methods