react-google-recaptcha
react-google-recaptcha copied to clipboard
executeAsync() halts if client closes recaptcha pop up without resolving
react-google-recaptcha version: "^2.1.0"
consider form with hidden recapcha and in onSubmit
, we execute:
values.recaptcha = await recaptchaRef.current.executeAsync();
//Submit values to validate in be
When user does not resolve the captcha, system just sits there and waits for something...
any updates or workaround?
I have a similar problem, calling the executeAsync multiple times, all calls except the first one resolves, the consecutive calls after the first one is just never resolving.
Edit: found my issue already reported 191
Same problem. My app is waiting for the reply from the recaptcha, and it doesn't go forward. It would be interesting if the token generation fails if the user leaves the recaptcha and/or if there was time to try to get the token
Any updates?