The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: onSuccess prop in Turnstile captcha docs
Patrick Schaub708ced419524
diff --git a/apps/docs/pages/guides/auth/auth-captcha.mdx b/apps/docs/pages/guides/auth/auth-captcha.mdxindex fac1bdf87d1..0834167875d 100644--- a/apps/docs/pages/guides/auth/auth-captcha.mdx+++ b/apps/docs/pages/guides/auth/auth-captcha.mdx@@ -165,18 +165,18 @@ Let's create an empty state to store our `captchaToken`const [captchaToken, setCaptchaToken] = useState()```-Now lets add the Cloudflare Turnstile component to the JSX section of our code+Now lets add the Cloudflare Turnstile component to the JSX section of our code:```html<Turnstile />```-We will pass it the sitekey we copied from the Cloudflare website as a property along with a `onVerify` property which takes a callback function. This callback function will have a token as one of its properties. Let's set the token in the state using `setCaptchaToken`+We will pass it the sitekey we copied from the Cloudflare website as a property along with a `onSuccess` property which takes a callback function. This callback function will have a token as one of its properties. Let's set the token in the state using `setCaptchaToken`:```jsx<Turnstilesitekey="your-sitekey"- onVerify={(token) => { setCaptchaToken(token) }+ onSuccess={(token) => { setCaptchaToken(token) }/>```