Skip to content

CaptchaState

CAPTCHA widget state for managing token generation

PropertyTypeDescription
errornull | ErrorAny error that occurred
execute() => Promise<string>Execute/trigger the CAPTCHA (for invisible CAPTCHA like reCAPTCHA v3)
isLoadingbooleanWhether a token is being generated
isReadybooleanWhether the CAPTCHA widget is ready
onError(error: Error) => voidCallback to be called when CAPTCHA errors
onExpire() => voidCallback to be called when CAPTCHA expires
onVerify(token: string) => voidCallback to be called when CAPTCHA is verified
reset() => voidReset the CAPTCHA widget
tokennull | stringCurrent CAPTCHA token (null until solved)