Skip to content

Documentation / react-auth / Captcha

Function: Captcha()

Captcha(props): null | Element

Used to render an invisible captcha alongside important forms

Notes:

  • Only for internal use, or use with headless SDK (the Privy modal handles captchas internally with this component)
  • Only one <Captcha /> should be rendered at a time, since it injects/removes a global script
  • the state of the captcha workflow can be accessed using useCaptcha
  • wrapper around marsidev/react-turnstile, accepts same props

Parameters

props: CaptchaProps

Returns

null | Element