Create a superRefine callback that validates CAPTCHA answers. Must be called AFTER merging the CAPTCHA schema into the form schema.

  • Parameters

    • formKey: string

      Form identifier to check CAPTCHA configuration

    • translate: TranslateFn = ...

      i18n function for error messages

    Returns (data: Record<string, unknown>, ctx: $RefinementCtx) => void

    superRefine callback function, or undefined if CAPTCHA is disabled