ruigomeseu / vue-turnstile

A Cloudflare Turnstile library for Vue 3
MIT License
63 stars 9 forks source link

Add error and unsupported callbacks #11

Closed miguilimzero closed 10 months ago

miguilimzero commented 11 months ago

Adds error and unsupported callbacks support as events. Those callbacks are very important to give feedback to the users on why the captcha is not working or why the test failed.

Documentation: https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#configurations https://developers.cloudflare.com/turnstile/reference/client-side-errors

miguilimzero commented 11 months ago

Since there are now a lot of different callbacks, have you considered adding the default callback as an event and removing the v-model? I think this is possible without a breaking change, by supporting both ways and listing only the event one in the README.