9.28
or higher of the auth0.js
library.
<script src="https://cdn.auth0.com/js/auth0/9.28/auth0.min.js"></script>
<div class="captcha-container"></div>
loginCaptcha
and signupCaptcha
components after the WebAuth
constructor.
login
method, assign the captcha
property the value loginCaptcha.getValue()
:
login
method’s callback function parameter (cb
), read WebAuth on auth0.js documentation.
signupAndLogin
method, assign the captcha
property the value signupCaptcha.getValue()
:
signupAndLogin
method’s callback function parameter (cb
), read WebAuth on auth0.js documentation.
loginCaptcha
and signupCaptcha
components in your generic error handling logic.
renderCaptcha
and renderSignupCaptcha
methods, you can configure the template for each supported CAPTCHA provider through the options
parameter.
The templates
property in the options
parameter supports the following properties:
Name | Description |
---|---|
auth0 | Template function receiving the challenge and returning a string. |
recaptcha_v2 | Template function receiving the challenge and returning a string. |
recaptcha_enterprise | Template function receiving the challenge and returning a string. |
hcaptcha | Template function receiving the challenge and returning a string. |
friendly_captcha | Template function receiving the challenge and returning a string. |
arkose | Template function receiving the challenge and returning a string. |
auth0_v2 | Template function receiving the challenge and returning a string. |
error | Template function returning a custom error message when the challenge could not be fetched, receives the error as first argument. |
9.24
or higher of the auth0.js library.
<script src="https://cdn.auth0.com/js/auth0/9.24/auth0.min.js"></script>
<div class="passwordless-captcha-container"></div>