Say why a sign-in link didn't work, and clear rejected sign-ins

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
minimus7andClaude Opus 5.5 committed 2026-11-04 12:04:13 -06:00
1 parent de40f85407
commit 9c4bf6198e
4 files changed
+11 -2

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ export async function GET(request: Request) {
const supabase = await createClient();
const { error } = await supabase.auth.exchangeCodeForSession(code);
if (!error) return home(origin);
console.error("[broke] sign-in link:", error.message);
}
return NextResponse.redirect(`${origin}/login?error=link`);
}