From 80dcaf1bc2398162d10b8beba439b5f881e9b0a0 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Fri, 3 Jul 2026 20:53:55 +0700 Subject: [PATCH] refactor: remove redundant error logging for unauthorized TikTok webhook requests --- app/api/webhooks/tiktok/route.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/app/api/webhooks/tiktok/route.ts b/app/api/webhooks/tiktok/route.ts index 7879222..4741eea 100644 --- a/app/api/webhooks/tiktok/route.ts +++ b/app/api/webhooks/tiktok/route.ts @@ -6,7 +6,6 @@ export async function POST(req: Request) { if (process.env.TIKTOK_WEBHOOK_SECRET) { const { searchParams } = new URL(req.url); if (searchParams.get("secret") !== process.env.TIKTOK_WEBHOOK_SECRET) { - console.error("[TikTok Webhook] Unauthorized request: invalid or missing secret query parameter."); return NextResponse.json({ error: "Unauthorized" }, { status: 401 }); } }