feat: add local auth billing and usage management

This commit is contained in:
inman
2026-08-12 12:13:06 +08:00
parent f642b5e71f
commit 196fdde83f
119 changed files with 15695 additions and 2650 deletions

View File

@@ -1,11 +1,5 @@
import { completeAuthorizationCallback, redirectToLoginWithError } from "@/lib/server/auth/oauth";
export const runtime = "nodejs";
import { NextResponse } from "next/server";
export async function GET(request: Request) {
try {
return await completeAuthorizationCallback(request);
} catch {
return redirectToLoginWithError(request, "callback_failed");
}
return NextResponse.redirect(new URL("/auth/login?error=callback_failed", request.url));
}