pdupavillon / express-recaptcha

Implementation of google recaptcha v2 & V3 solutions for express.js
MIT License
128 stars 22 forks source link

Expired Session / Cookie #36

Open 1Map opened 4 years ago

1Map commented 4 years ago

Hi,

All is working fine, except when the Recaptcha session expires. Let's say you have a login page with recaptcha validation. Now, open the page and leave the form open for some time (so recaptcha session expires) - Not sure but I think more than 2 minutes. Then login. This gives a recaptcha validation error. How can one handle this type of behaviour? I am using v3

pdupavillon commented 4 years ago

I guess the API is returning this error code: timeout-or-duplicate. https://developers.google.com/recaptcha/docs/verify#error_code_reference I just need to do some changes to implement it. I'll let you know when it's available