Astrian / cfturnstile-vue3

A Vue 3 component for showing the Cloudflare Turnstile widget on your project.
MIT License
22 stars 5 forks source link

Option to re-run turnstile? #2

Open wc-davide opened 1 year ago

wc-davide commented 1 year ago

Hi, is there any option or way to make the component re-run?

I am in the following scenario:

Getting a new token for the second request is needed because a token can only be used for 1 request, then it becomes invalid.

Is there any way I could achieve this?

timo75 commented 1 year ago

Calling turnstile.reset() should work.

fquero47 commented 8 months ago

Uncaught (in promise) TurnstileError: [Cloudflare Turnstile] Widget 0am12 to reset was not found..