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

Fix RecaptchaV3HiddenInput token generation interval #107

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MSchreijen
Copy link

When generating the token, every time the interval executed, a new interval was set up. This lead to client browser sending a massive amount of requests after being on the page for a little bit (it kept growing exponentially). This change fixes this by pulling the interval setup outside of the function, then calling the function once and setting up an interval which calls the function every 100 seconds.

Merijn Schreijen added 3 commits November 28, 2024 09:03
Used to set up an interval everytime the interval executes. Now only sets up the interval once.
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

Successfully merging this pull request may close these issues.

1 participant