From 52ac1323280fb849103301101a4fc4cb8a8e4c23 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 30 Aug 2024 11:10:48 -0300 Subject: [PATCH] Update auth.ts --- apps/api/src/controllers/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts index 5df6a857..d634b9ed 100644 --- a/apps/api/src/controllers/auth.ts +++ b/apps/api/src/controllers/auth.ts @@ -104,7 +104,7 @@ export async function supaAuthenticateUser( status?: number; plan?: PlanType; }> { - console.log(req.headers); + const authHeader = req.headers.authorization ?? (req.headers["sec-websocket-protocol"] ? `Bearer ${req.headers["sec-websocket-protocol"]}` : null); if (!authHeader) { return { success: false, error: "Unauthorized", status: 401 };