Closed marsidev closed 10 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
react-turnstile | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 23, 2024 6:24pm |
Looks good for my use case. I plan to call turnstileRef.current?.execute(), followed by getResponsePromise() in my handleSubmit function. Form is only submitted when promise is fulfilled.
Nice work!
This PR introduces a new method to get the token of the widget as a promise, it waits until the widget is rendered and solved. It has a timeout of 30000 ms.
It should fix #47