Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there way to get Client Error Codes of turnstile via the library? #67

Closed
Bigbhardwaj opened this issue May 9, 2024 · 3 comments · Fixed by #68
Closed

Is there way to get Client Error Codes of turnstile via the library? #67

Bigbhardwaj opened this issue May 9, 2024 · 3 comments · Fixed by #68

Comments

@Bigbhardwaj
Copy link

It seems that while the Cloudflare documentation mentions the ability to retrieve client error codes through an error callback, this feature isn't currently available in the @marsidev/react-turnstile library. Adding this capability to the library on onError prop would enable users to capture client error codes during the error callback.

image

image

@marsidev
Copy link
Owner

marsidev commented May 9, 2024

Actually, the error code is being returned in the error callback.

However, the TypeScript definition in the library is wrong. It will be fixed in next release. 👍🏽

image

@Bigbhardwaj
Copy link
Author

Bigbhardwaj commented May 9, 2024

Thanks @marsidev for a quick response!, Do you have any visibility when it could be released?

@marsidev
Copy link
Owner

It's available now in v0.6.1, @Bigbhardwaj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants