test: discable turnstile

This commit is contained in:
Nicholas Tindle
2025-10-18 02:22:53 -05:00
parent d4a7ce3846
commit 7c248f2d6e
2 changed files with 16 additions and 1 deletions

View File

@@ -20,6 +20,16 @@ export async function GET(request: Request) {
const { error } = await supabase.auth.exchangeCodeForSession(code);
if (error) {
console.log("=== OAUTH CODE EXCHANGE ERROR ===");
console.log("Error exchanging code for session:", {
message: error.message,
name: error.name,
status: (error as any).status,
code: (error as any).code,
});
}
if (!error) {
try {
const api = new BackendAPI();
@@ -87,6 +97,11 @@ export async function GET(request: Request) {
}
}
// OAuth error - log it before redirecting
console.log("=== OAUTH CALLBACK ERROR ===");
console.log("No code received, redirecting to error page");
console.log("Search params:", searchParams.toString());
// return the user to an error page with instructions
return NextResponse.redirect(`${origin}/auth/auth-code-error`);
}

View File

@@ -162,7 +162,7 @@ export default function SignupPage() {
/>
{/* Turnstile CAPTCHA Component */}
{isCloudEnv && !turnstile.verified ? (
{isCloudEnv ? (
<Turnstile
key={captchaKey}
siteKey={turnstile.siteKey}