Skip to content

CaptchaState

CAPTCHA widget state for managing token generation

Property Type Description
error Error | null Any error that occurred
execute () => Promise<string> Execute/trigger the CAPTCHA (for invisible CAPTCHA like reCAPTCHA v3)
isLoading boolean Whether a token is being generated
isReady boolean Whether the CAPTCHA widget is ready
onError (error) => void Callback to be called when CAPTCHA errors
onExpire () => void Callback to be called when CAPTCHA expires
onVerify (token) => void Callback to be called when CAPTCHA is verified
reset () => void Reset the CAPTCHA widget
token string | null Current CAPTCHA token (null until solved)