dozoisch / dozoisch/react-google-recaptcha
Remember onErrored state during execute call.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
react-google-recaptcha version: 3.1.0
react-async-script version: 1.2.0
recaptcha mode: invisible
Right now the issue is if the sitekey is invalid. And you still want to call `execute` or `executeAsync`, both onChange or promise.reject does not get called. I.e. if there is an error the sitekey, execute should return an exception or executeAsync should send rejected promise.
Bonus: Google UI shows "ERROR for site owner: Invalid site key", can we return this as an error message?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the execute and executeAsync entry points in the reCAPTCHA wrapper and how the invisible mode reports errors. Check the behavior with an invalid site key, then verify that execute exposes the error and executeAsync rejects, including the Google error message if it is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100