From 17bbba7df35e473b80014293d1e965591630d986 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Fri, 30 Jan 2026 17:10:06 +0100 Subject: [PATCH] chore: remove comments --- apps/chat/src/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/chat/src/index.ts b/apps/chat/src/index.ts index 0e2fcb0..04e0c7e 100644 --- a/apps/chat/src/index.ts +++ b/apps/chat/src/index.ts @@ -43,17 +43,13 @@ app.get( let chatUser: ChatUser | null = null; let personalChannel: any = null; - // Check for bot authentication via Authorization header or botAuth query parameter - // Authorization header takes precedence if both are provided let apiKey: string | null = null; if (authHeader && authHeader.startsWith('Bearer ')) { const extractedKey = authHeader.substring(7); - // Validate the API key format before attempting database lookup if (extractedKey.startsWith('hctvb_')) { apiKey = extractedKey; } } else if (botAuth && typeof botAuth === 'string' && botAuth.trim().length > 0) { - // Validate botAuth query parameter format if (botAuth.startsWith('hctvb_')) { apiKey = botAuth; }