This example demonstrates how to use Procaptcha in frictionless mode with explicit rendering.
This example demonstrates how to use Procaptcha in frictionless mode with explicit rendering:
// Import the render function import { render } from "https://staging-js.prosopo.io/js/procaptcha.bundle.js" import { CaptchaType } from "@prosopo/types"; // Render CAPTCHA const widgetId = render(document.getElementById('procaptcha-container'), { siteKey: import.meta.env.PROSOPO_SITE_KEY_FRICTIONLESS, captchaType: CaptchaType.frictionless, callback: handleCaptchaResponse, "failed-callback": handleCaptchaFailed });