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

Issue with invalid sitekey #271

Closed
souravion opened this issue Sep 15, 2022 · 1 comment
Closed

Issue with invalid sitekey #271

souravion opened this issue Sep 15, 2022 · 1 comment
Labels

Comments

@souravion
Copy link

souravion commented Sep 15, 2022

How can I handle error if sitekey is invalid

Code snippet

this.recaptchaV3Service.execute('myAction').subscribe(
              (token) => {
                console.log('Recaptcha v3 token', token);
              },
              (error) => {
                console.log(`Recaptcha v3 error: see console`);
                console.log(`Recaptcha v3 error:`, error);
              }
            );
@DethAriel
Copy link
Owner

DethAriel commented Dec 5, 2022

Exactly like in the code snippet you provided. An example of such handling is also given on the website (see v3.component.ts tab).

If you are wondering if an invalid siteKey can be fixed in runtime, then this is not something that can be done right now.

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

No branches or pull requests

2 participants