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:
1 parent
de40f85407
commit
9c4bf6198e
4 files changed
+11
-2
No files matched your search
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user