According to the docs the render function will return the widget-id:
If the invocation is successful, the function returns a widgetId (string). If the invocation is unsuccessful, the function returns undefined.
-- https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/
I need this widgetId to call window.turnstile.reset(widgetId) in order to reset the captcha.
According to the docs the render function will return the widget-id:
-- https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/
I need this widgetId to call
window.turnstile.reset(widgetId)in order to reset the captcha.