refactor: remove redundant error logging for unauthorized TikTok webhook requests
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user