Skip to main content
The InterstitialCaptcha class implements the interstitial-captcha screen functionality. This screen prompts the user to complete a CAPTCHA challenge during the authentication flow.

Constructors

Create an instance of InterstitialCaptcha screen manager
Example
import InterstitialCaptcha from "@auth0/auth0-acul-js/interstitial-captcha";
const interstitialCaptcha = new InterstitialCaptcha();
interstitialCaptcha.submitCaptcha({
 captcha: "captchaValue",
});

Properties

Provides branding-related configurations, such as branding theme and settings.
Provides client-related configurations, such as id, name, and logoUrl, for the interstitial-captcha screen.
Provides information about the user’s organization, such as organization id and name.
Contains data about the current prompt in the authentication flow.
Contains details specific to the interstitial-captcha screen, including its configuration and context.
Contains data related to the tenant, such as id and associated metadata.
Provides transaction-specific data for the interstitial-captcha screen, such as active identifiers and flow states.
Handles untrusted data passed to the SDK, such as user input during the CAPTCHA challenge flow.
Details of the active user, including username, email, and roles.

Methods

submitCaptcha
(options ?)
This method submits the CAPTCHA response to continue the authentication flow.
Example
import InterstitialCaptcha from "@auth0/auth0-acul-js/interstitial-captcha";

const interstitialCaptcha = new InterstitialCaptcha();
interstitialCaptcha.submitCaptcha({
 captcha: "captchaValue",
});
options
OPTIONAL
Optional payload.
getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.