This example demonstrates how to use Procaptcha in pow mode with explicit rendering.
This example demonstrates how to use Procaptcha in Proof of Work mode with explicit rendering:
// Import the render function
import { render } from "%VITE_BUNDLE_URL%"
import { CaptchaType } from "@prosopo/types";
// Render CAPTCHA
const widgetId = render(document.getElementById('procaptcha-container'), {
siteKey: import.meta.env.PROSOPO_SITE_KEY_POW,
captchaType: CaptchaType.pow,
callback: handleCaptchaResponse,
"failed-callback": handleCaptchaFailed,
size: "invisible"
});