Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember onErrored state during execute call. #282

Open
rajparekh-dev opened this issue Nov 21, 2023 · 0 comments
Open

Remember onErrored state during execute call. #282

rajparekh-dev opened this issue Nov 21, 2023 · 0 comments

Comments

@rajparekh-dev
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant