react-google-invisible-recaptcha icon indicating copy to clipboard operation
react-google-invisible-recaptcha copied to clipboard

Error Uncaught (in promise) TypeError when trying to run getResponse()

Open sayhicoelho opened this issue 1 year ago • 0 comments

My code

const onRecaptchaResolved = () => {
  console.log('captcha resolved!!!')
  console.log(recaptchaInstance.getResponse())
}

...

return (
  <Recaptcha
    ref={ref => setRecaptchaInstance(ref)}
    sitekey={process.env.REACT_APP_RECAPTCHA_SITE_KEY}
    onResolved={onRecaptchaResolved} />
)

My logs

captcha resolved!!!
Uncaught (in promise) TypeError

Version "react-google-invisible-recaptcha": "^0.2.12"

sayhicoelho avatar Mar 25 '23 00:03 sayhicoelho