laravel-google-recaptcha-v3 icon indicating copy to clipboard operation
laravel-google-recaptcha-v3 copied to clipboard

TIMEOUT_OR_DUPLICATE

Open luisrossi opened this issue 4 years ago • 1 comments

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?

luisrossi avatar Oct 07 '21 16:10 luisrossi

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

RyanDaDeng avatar Oct 15 '21 08:10 RyanDaDeng