Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Variable validateWebhookSignatureConst

    validateWebhookSignature: (
        secret: string,
        headers: IncomingHttpHeaders,
        body: any,
    ) => boolean

    Validate webhook signature headers for Conversation callback.

    Type Declaration

      • (secret: string, headers: IncomingHttpHeaders, body: any): boolean
      • Parameters

        • secret: string

          secret associated to the Conversation app

        • headers: IncomingHttpHeaders

          Incoming request's headers

        • body: any

          Incoming request's body

        Returns boolean

        • true if the signature header is valid