Docs / Challenge flows

// after POST /v1/assess on your server:
if (result.action === "challenge") {
  await Frod.challenge({
    provider: "turnstile",          // or "hcaptcha"
    siteKey: "0x4AAAA…",
    container: "#frod-challenge",
    action: result.action,
    onPass: (token) => {
      // verify token with Cloudflare/hCaptcha on your backend, then continue signup
      fetch("/finish-signup", { method:"POST", body: JSON.stringify({ captcha: token }) });
    }
  });
}

Shadow tip: while Shadow is ON, action is always allow — use raw_action if you want to preview the captcha without blocking.

Integrate · Cabinet shadow mode