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

    Variable validateAuthenticationHeaderConst

    validateAuthenticationHeader: (
        applicationKey: string,
        applicationSecret: string,
        headers: IncomingHttpHeaders,
        body: any,
        path: string,
        method: string,
    ) => boolean

    Validate authorization header for callback request on application-signed protected endpoints (Verification and Voice webhooks)

    Type Declaration

      • (
            applicationKey: string,
            applicationSecret: string,
            headers: IncomingHttpHeaders,
            body: any,
            path: string,
            method: string,
        ): boolean
      • Parameters

        • applicationKey: string

          application key (from dashboard) related to the event

        • applicationSecret: string

          application secret (from dashboard) related to the event

        • headers: IncomingHttpHeaders

          Incoming request's headers

        • body: any

          Incoming request's body

        • path: string

          Incoming request's path

        • method: string

          Incoming request's HTTP method

        Returns boolean

        • true if the authorization header is valid