implement oauth2 login

This commit is contained in:
fuomag9
2025-10-31 23:02:30 +01:00
parent 29acf06f75
commit d9ced96e1b
29 changed files with 800 additions and 136 deletions

View File

@@ -1,8 +1,5 @@
import { NextResponse } from "next/server";
import { destroySession } from "@/src/lib/auth/session";
import { config } from "@/src/lib/config";
import { signOut } from "@/src/lib/auth";
export async function POST() {
await destroySession();
return NextResponse.redirect(new URL("/login", config.baseUrl));
await signOut({ redirectTo: "/login" });
}