Closed jinsley8 closed 9 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 | Feb 18, 2024 4:58pm |
@marsidev I've updated the 'error-codes'
type
Thanks @jinsley8!
Description
Cloudflare returns extra properties not yet accounted for in
TurnstileServerValidationResponse
and theerror-codes
is always returned whether the validation is successful or not.messages
andmetadata
seem like they have been added to the response more recently but not yet documented in the official server-side validation docs.metadata
is returned when validation is successful.I am not quite sure of the purpose of
messages
so the comment isn't as detailed but it is only returned if validation fails.Changes Made
error-codes
property so it is always required but can be an empty array.messages
andmetadata
.Examples