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
feat(auth): more ip
Gergő Móriczebdf182b00a6
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.tsindex 4ca3b967e..b8063da2d 100644--- a/apps/api/src/controllers/auth.ts+++ b/apps/api/src/controllers/auth.ts@@ -393,7 +393,7 @@ export async function supaAuthenticateUser(};}- const incomingIP = (req.headers["x-forwarded-for"] ||+ const incomingIP = (req.headers["x-preview-ip"] || req.headers["x-forwarded-for"] ||req.socket.remoteAddress) as string;const iptoken = incomingIP + token;