Listens for messages from mCaptcha widget and provides hooks to update state and configure mCaptcha widget

Hierarchy

  • default

Constructors

Properties

Methods

Constructors

  • Parameters

    • config: WidgetConfig
    • updateState: ((token) => void)
        • (token): void
        • Parameters

          • token: string

          Returns void

    Returns default

    Throws

    : This error is thrown when neither widget link nor site key is provided to this compoenent or when both are provided at the same time.

Properties

updateState: ((token) => void)

Type declaration

    • (token): void
    • Parameters

      • token: string

      Returns void

widgetLink: URL

Methods

  • Handle messages sent from mCaptcha widget iframe

    Parameters

    • e: MessageEvent<any>

    Returns void

  • Listen for messages from the mCaptcha iframe widget

    Returns void

Generated using TypeDoc