I implemented the invisible captcha but sometimes the user login before the captcha is solved and it
I implemented the invisible captcha but sometimes the user login before the captcha is solved and its causing errors
<form>, then it is automatically included in .formData() when that POST request is received on the server side. Alternatively you can get the token directly at any time (after render()) by using turnstile.getResponse(widget?: WidgetId | HTMLElement | ElementId): string (https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#access-a-widgets-state).
turnstile.getResponse() in the console returns undefined, although the usual console logs and network entries appear for Turnstile (eg: the 401 for PAT) - also not seeing an errors in the console. This works on Firefox and Safari.


.formData()turnstile.getResponse(widget?: WidgetId | HTMLElement | ElementId): stringturnstile.getResponse()