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

TIMEOUT_OR_DUPLICATE #88

Open
luisrossi opened this issue Oct 7, 2021 · 1 comment
Open

TIMEOUT_OR_DUPLICATE #88

luisrossi opened this issue Oct 7, 2021 · 1 comment

Comments

@luisrossi
Copy link
Contributor

I'm using your component in Vue.js however I notice that when the user fills out a very large form, spending too much time on screen, the first request will give the timeout message and the user will need to click again to submit the form.

Is there any alternative to increase this time, or when it exceeds the time, automatically make a new request to get a new token?

@RyanDaDeng
Copy link
Owner

RyanDaDeng commented Oct 15, 2021

Hello Luisrossi, i think by design, the component shouldn't allow the key to be refreshed, so this needs to be handled on your side, for example, you can just do simple Javascript coding:

setInterval(function(){ this.$refs.captcha.execute();}, 150000);

check the example that is provided in readme under vuejs section.

Thanks

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

2 participants