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

    Variable generateAuthorizationHeaderConst

    generateAuthorizationHeader: (
        httpVerb: string,
        body: RequestBody | undefined,
        contentType: string,
        canonicalizedHeaders: string,
        canonicalizedResource: string,
        applicationKey: string,
        applicationSecret: string,
    ) => string

    Generate authorization header for application-signed requests (Verification and Voice)

    Type Declaration

      • (
            httpVerb: string,
            body: RequestBody | undefined,
            contentType: string,
            canonicalizedHeaders: string,
            canonicalizedResource: string,
            applicationKey: string,
            applicationSecret: string,
        ): string
      • Parameters

        • httpVerb: string

          request's HTTP method

        • body: RequestBody | undefined

          request's body (undefined in case of GET request)

        • contentType: string

          content-type header value

        • canonicalizedHeaders: string

          x-timestamp header

        • canonicalizedResource: string

          request's path

        • applicationKey: string

          application key (from dashboard)

        • applicationSecret: string

          application secret (from dashboard)

        Returns string

        • Application signed header value for HTTP authorization header