Window.turnstile.remove with retry set to auto doesn't clearTimeout

What happens when the challenge has failed and retry is set to auto? Well, Cloudflare will queue up a window.turnstile.reset using setTimeout (see the code I sent above). Then what happens is that the widget was removed, but the setTimeout was not cancelled, and it will try to reset a widget that doesn’t exist hence it’ll print the error:

[Cloudflare Turnstile] Nothing to reset found for the provided container.

I’ve already discussed this on Discord, see the

1 Like