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

    Class VerificationCallbackWebhooks

    Index

    Constructors

    Methods

    • Reviver for a Verification Event. This method ensures the object can be treated as a Verification Event and should be called before any action is taken to manipulate the object.

      Parameters

      • eventBody: any

        The event body containing the verification event notification.

      Returns VerificationCallbackEvent

      • The parsed verification event object.
    • Validate authorization header for callback request

      Parameters

      • 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
    • Static reviver for a Verification Event. This method ensures the object can be treated as a Verification Event.

      Parameters

      • eventBody: any

        The event body containing the Verification event notification.

      Returns VerificationCallbackEvent

      • The parsed Verification event object