Use the reCAPTCHA element to verify that site visitors are human before allowing them to perform restricted operations such as data submission, login, or accessing private content.
Important: To ensure complete protection, you must include backend authorization as a mandatory step of the CAPTCHA validation lifecycle.
The following outlines a typical CAPTCHA validation lifecycle:
token
is generated. The onVerified()
event indicates a successful CAPTCHA challenge completion. Use the onVerified()
event handler to enable the disabled clickable element.onError()
event handler to instruct the visitor to try again later. Return to Step 1.authorize()
with the generated token
.onTimeout()
event handler to disable the clickable trigger. Return to Step 1.authorize()
checks whether the token is valid. One of the following occurs: