Passer au contenu principal

Documentation Index

Fetch the complete documentation index at: https://auth0-dr-923.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

La classe d’écran interstitiel Captcha fait partie du flux d’authentification Identifier First et est présentée en fonction des paramètres du locataire. Pour plus de détails, consultez la section Détection des robots.
Importer et instancier la classe d’écran interstitiel Captcha :
import InterstitialCaptcha from "@auth0/auth0-acul-js/interstitial-captcha";
const interstitialCaptcha = new InterstitialCaptcha();

// SDK Properties return a string, number or boolean
// ex. "interstitial-captcha"
interstitialCaptcha.screen.name;

// SDK Methods return an object or array
// ex. { email: "someone@example.com" } 
interstitialCaptcha.screenData();

Propriétés

Les propriétés de la classe d’écran interstitiel Captcha sont :
interface branding {
  settings: null | BrandingSettings;
  themes: null | BrandingThemes;
}

interface BrandingSettings {
  colors?: {
    pageBackground?: string | {
      angleDeg: number;
      end: string;
      start: string;
      type: string;
    };
    primary?: string;
  };
  faviconUrl?: string;
  font?: {url: string;};
  logoUrl?: string;
}

interface BrandingThemes {
  default: {
    borders: Record<string, string | number | boolean>;
    colors: Record<string, string>;
    displayName: string;
    fonts: Record<string, string | boolean | object>;
    pageBackground: Record<string, string>;
    widget: Record<string, string | number>;
  };
}

Méthode

La méthode de la classe d’écran interstitiel Captcha est :

submitCaptcha( options? )

Cette méthode vérifie la réponse captcha et dirige l’utilisateur à l’étape suivante.
interstitialCaptchaManager.submitCaptcha({
  captcha: <CaptchaCodeResponse>
});
ParamètreTypeRequisDescription
captchachaîneOuiCode captcha ou réponse du fournisseur de captcha.
[clé: chaîne]chaîne | nombre | booléen | non définiNonDonnées supplémentaires collectées auprès de l’utilisateur.