Skip to content

Components: Security

Cloudflare Turnstile: the widget, its hook and configuration. Tokens are verified by the /api/graphql proxy.

Generated from apps/theme/src/components/security/: 1 files, 1 components. Import a component through the @/components/… path shown, so a fork can override it in src/custom/.

@/components/security/turnstile-widget

apps/theme/src/components/security/turnstile-widget.tsx client component

<TurnstileWidget>

Cloudflare Turnstile widget rendered via Cloudflare's OFFICIAL api.js script (no third-party React wrapper, no npm dependency). Uses explicit rendering so the token is surfaced via a callback and the widget can be reset after each submit. Renders nothing when NEXT_PUBLIC_TURNSTILE_SITE_KEY is unset.

No props.