Open anmol5varma opened 6 years ago
I've also had many problems with this lib so I've created my own one. You can check it out, it works pretty well and has some cool improvements comparing to this one. If you'll lack anything there, just file an issue - I'll try to fix it as soon as possible. 🚀
Library: https://github.com/sarneeh/reaptcha Example: https://sarneeh.github.io/reaptcha/
It only works with explicity rendering, you need to specify
...
render="explicit"
onloadCallback={() => console.log('rendered')}
...
Not making excuses, putting here to help others.
Library needs better documentation!
onloadCallback
maybe works, but I still have issues with verifyCallback
even with explicit render option.
just having explicit render option is not enough -- you need the onloadCallback defined
...
render="explicit" //
onloadCallback={() => console.log('rendered')} // required
verifyCallback={(response) => { // do something }}
...
A weird behaviour is happening as the first time I use captcha the callback isn't being called and hence no gResponse is sent and login fails. From the second request onwards it works fine.