mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
test: discable turnstile
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ export default function SignupPage() {
|
||||
/>
|
||||
|
||||
{/* Turnstile CAPTCHA Component */}
|
||||
{isCloudEnv && !turnstile.verified ? (
|
||||
{isCloudEnv ? (
|
||||
<Turnstile
|
||||
key={captchaKey}
|
||||
siteKey={turnstile.siteKey}
|
||||
|
||||
Reference in New Issue
Block a user