Type Definitions
-
MessageTemplates
-
Message Templates object to get error messages from error codes received from the reCaptcha-v2 'backend' service.
-
ReCaptchaTestValue
-
Properties:
Name Type Attributes Description secret
String The 'secret' key sent to the google reCaptcha-v2 backend service. response
String The 'response' string sent to the reCaptcha-v2 backend service. remoteip
String <optional>
Optional. The 'remoteip' string sent to the reCaptcha-v2 backend-validation service. -
ReCaptchaValidatorOptions
-
Properties:
Name Type Description requestOptions
RequestOptions messageTemplates
MessageTemplates -
RequestOptions
-
Options used to make request to google's reCaptcha-v2 backend-validation service.
-
ValidationResult
-
Properties:
Name Type Description result
Boolean Result of validators validation (`true` or `false`). messages
Array.<String> Validation failure messages; Reasons why tested value(s) didn't pass validation.