Cloudflare Turnstile CAPTCHA is failing during sign-up/sign-in, blocking users from creating accounts.
Error: 401 error from challenges.cloudflare.com - CAPTCHA verification failing
For testing and development, disable bot protection in Clerk dashboard:
-
Go to Clerk Dashboard
- Visit: https://dashboard.clerk.com
-
Select Your Application
- Click on your "vital-bird-63" application
-
Navigate to Settings
- Click "User & Authentication" in sidebar
- Click "Attack Protection"
-
Disable Bot Protection
- Find "Bot sign-up protection"
- Turn it OFF for development
- Save changes
-
Test Again
- Clear browser cache (Ctrl + Shift + Delete)
- Try signing up again
- CAPTCHA should no longer appear
If you want to keep bot protection enabled:
- Clerk Dashboard → Your App → Domains
- Add
localhostto allowed domains - Add
http://localhost:5173to authorized redirects
For production deployment:
- Configure your production domain in Clerk
- Bot protection will work correctly on production domains
- Turnstile CAPTCHA loads properly on public domains
If you want to temporarily bypass CAPTCHA in development, you can use Clerk's test mode:
- Settings → Environment
- Use Development instance (not Production)
- Development instance has relaxed bot protection
Run these steps now:
- Open Clerk Dashboard: https://dashboard.clerk.com
- Go to: User & Authentication → Attack Protection
- Toggle OFF: "Bot sign-up protection"
- Save
- Test: Try signing up at http://localhost:5173/sign-up
- Development: Disable bot protection for easier testing
- Production: Re-enable bot protection for security
- Turnstile: Cloudflare's CAPTCHA service used by Clerk
- Test Keys: Development keys have limitations with CAPTCHA
After disabling bot protection:
- ✅ No CAPTCHA challenge
- ✅ Immediate sign-up/sign-in
- ✅ No 401 errors
- ✅ Smooth user experience