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

executeAsync() halts if client closes recaptcha pop up without resolving

Open Nodirbek3d opened this issue 4 years ago • 4 comments

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...

Nodirbek3d avatar Jan 04 '21 10:01 Nodirbek3d

any updates or workaround?

doptster avatar Feb 19 '21 08:02 doptster

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

Ashenbacken avatar Apr 19 '21 09:04 Ashenbacken

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

leonardopn avatar Jun 30 '21 13:06 leonardopn

Any updates?

ndeviant avatar Nov 23 '21 13:11 ndeviant