Add authenticated login and SSO protection

This commit is contained in:
inman
2026-05-29 15:54:13 +08:00
parent e36f28a668
commit 0648874801
50 changed files with 1853 additions and 63 deletions

View File

@@ -0,0 +1,11 @@
import { completeAuthorizationCallback, redirectToLoginWithError } from "@/lib/server/auth/oauth";
export const runtime = "nodejs";
export async function GET(request: Request) {
try {
return await completeAuthorizationCallback(request);
} catch {
return redirectToLoginWithError(request, "callback_failed");
}
}