Ok so this is how I understand it. I am not on the #🤖turnstile, so take what I say with a grain of

Ok so this is how I understand it. I am not on the #🤖turnstile, so take what I say with a grain of salt.

The
idempotency_key
is there for when submission of the form/action can fail, even if the Turnstile check succeeds. For example, say you have a form with the following fields:
  • Name
  • Email Address
  • Profile Picture
  • Turnstile Check
    The Name and Email are saved to a database, but the PfP is uploaded to object storage. You experience that the PUT to object storage fails intermittently, so you want to be able to retry the upload by resubmitting the form.
You have a problem though. By default, you would have to have the user redo the Turnstile check for every retry, which could be a pain if the error is not the users fault. If you add an
idempotency_key
to the form(in a hidden field), that persists on retry, then once the Turnstile Check is completed once, it can be reused(without failing) when a submission is retried
Was this page helpful?