reCAPTCHA v2 不活动的超时期限是多长?

Hap*_*der 5 recaptcha

我有一个使用 Google reCaptcha V2 的表单。存在延迟,延迟超过一分钟,是后端API调用造成的。在等待服务器响应时,reCAPTCHA 显示它已过期。我以为过期时间是2分钟,但是V3明确指定为2分钟。V2 的过期时间是多少?如何解决此问题?

我正在使用 VueJs 插件进行 reCaptcha。称为vue-recaptcha。请找到下面的代码:

<vue-recaptcha ref="recaptcha" @verify="onVerify" @expired="onExpired" :sitekey="recaptchaSiteKey"></vue-recaptcha>
<input name="recaptchaResponse" v-model="recaptchaResponse" v-validate="'required'" type="hidden" ></input>
Run Code Online (Sandbox Code Playgroud)

现在 onExpired 方法如下所示:

onExpired: function () {
  this.recaptchaResponse = null
},
Run Code Online (Sandbox Code Playgroud)