validateRequest
Verify a SignalWire webhook signature, accepting either a raw body string or
pre-parsed form params. This is the drop-in replacement for the legacy
@signalwire/compatibility-api validateRequest. For new code that has access
to the raw body, prefer validateWebhookSignature().
Parameters
signingKey
Your SignalWire Signing Key. An empty or non-string value throws an Error.
signature
The signature header value. A missing or empty value returns false.
url
The full URL SignalWire POSTed to.
paramsOrRawBody
Either the raw body string, or pre-parsed form params as a record, a Map, or
an array of [key, value] tuples.
Returns
boolean — true when the signature matches; false otherwise. The
comparison is constant-time.