@getdial/sdk - v0.21.0
    Preparing search index...

    Function verifyDialSignature

    • Verify a Dial X-Dial-Signature: t=<unix_seconds>,v1=<hex> header. The signature is HMAC-SHA256(secret, "<t>.<data>"), where data is the value the signature covers — the call_id for the self-hosted WebSocket protocol, or the raw request body for a webhook delivery. Returns false (never throws) on a malformed header, a stale/future timestamp, or a mismatch. Matches Dial's server-side signer byte-for-byte.

      Parameters

      • secret: string
      • header: string
      • data: string
      • opts: VerifyOptions = {}

      Returns boolean