Overview
Turnkey supports Cloudflare Turnstile captcha protection to help prevent automated abuse of authentication endpoints. When enabled, captcha tokens are required for Signup and InitOtp requests made through the Auth Proxy. Captcha is enabled per-organization in the Turnkey Dashboard under the Wallet Kit settings page.Supported SDKs
How It Works
- Enable captcha in the Turnkey Dashboard under Wallet Kit settings.
- The SDK automatically receives a
turnstileSiteKeyfrom the Auth Proxy via thegetWalletKitClientParamsrequest. - Your application renders a Cloudflare Turnstile widget that generates captcha tokens.
- Captcha tokens are attached to Signup and InitOtp requests as an
X-Captcha-Tokenheader.
Recommended Rollout
Integrate captcha in your app
Follow the setup guide for your SDK. The captcha widget will idle silently in the background until captcha is enabled — there is no impact to your users.
You can verify that your app is ready by checking for the presence of
turnstileSiteKey in the SDK config. If the key is present, captcha is enabled and your app should be providing tokens with each request.