removed console.log statements

This commit is contained in:
PxlLoewe
2025-02-27 00:34:53 +01:00
parent 9366f8f6b4
commit bbcde2eb4a
7 changed files with 639 additions and 647 deletions

View File

@@ -5,15 +5,11 @@ import { services } from "../../../(auth)/oauth/page";
export const POST = async (req: NextRequest) => {
const form = new URLSearchParams(await req.text());
console.log("POST body:");
const client = new PrismaClient();
const accessToken = form.get("token") || form.get("code");
const clientId = form.get("client_id");
const clientSecret = form.get("client_secret");
console.log("Access token:", accessToken);
console.log("Client ID:", clientId);
console.log("Secret:", clientSecret);
const service = services.find((s) => s.id === clientId);
if (!accessToken)