Auth: Login mit E-Mail/Passwort und Passkey, Logout

This commit is contained in:
2026-07-17 18:18:34 +02:00
parent 7e31dce237
commit d2bb39d815
2 changed files with 143 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import { NextResponse } from "next/server";
import { createClient } from "@/lib/supabase/server";
export async function POST(request: Request) {
const supabase = await createClient();
await supabase.auth.signOut();
return NextResponse.redirect(new URL("/login", request.url), { status: 303 });
}