Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Update auth.ts
Nicolas52ac1323280f
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.tsindex 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 };