Alex
BABetter Auth
•Created by Alex on 4/25/2025 in #help
Captcha verification failed
I keep getting "Captcha verification failed" after adding Cloudflare Turnstyle captcha using Nextjs:
import { Footer } from "@/components/internal/footer";
import RegisterForm from "@/components/internal/forms/register-form";
import Navigation from "@/components/internal/navigation";
import { Turnstile } from "@marsidev/react-turnstile";
export default function Login() {
return (
<div className="flex flex-col w-full h-full min-h-screen">
<Navigation />
<div className="flex flex-col gap-4 items-center justify-center flex-grow h-full w-full max-w-[90rem] mx-auto">
<RegisterForm />
<Turnstile siteKey={process.env.NEXT_PUBLIC_CLOUDFLARE_TURNSTILE_SITE_KEY as string} />
</div>
<Footer />
</div>
);
}
import { Footer } from "@/components/internal/footer";
import RegisterForm from "@/components/internal/forms/register-form";
import Navigation from "@/components/internal/navigation";
import { Turnstile } from "@marsidev/react-turnstile";
export default function Login() {
return (
<div className="flex flex-col w-full h-full min-h-screen">
<Navigation />
<div className="flex flex-col gap-4 items-center justify-center flex-grow h-full w-full max-w-[90rem] mx-auto">
<RegisterForm />
<Turnstile siteKey={process.env.NEXT_PUBLIC_CLOUDFLARE_TURNSTILE_SITE_KEY as string} />
</div>
<Footer />
</div>
);
}
5 replies