Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update auth.ts

Nicolas52ac1323280f
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index 5df6a8576..d634b9ed4 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 };