Skip to content

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

Update auth.ts

Nicolas14f696805c39
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index d344625d9..3089ae238 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -204,7 +204,7 @@ export async function supaAuthenticateUser(
}
chunk = await getACUC(normalizedApi);
-
+
if (chunk === null) {
return {
success: false,
@@ -251,6 +251,13 @@ export async function supaAuthenticateUser(
subscriptionData.plan,
);
break;
+ case RateLimiterMode.Extract:
+ rateLimiter = getRateLimiter(
+ RateLimiterMode.Extract,
+ token,
+ subscriptionData.plan,
+ );
+ break;
case RateLimiterMode.CrawlStatus:
rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token);
break;
@@ -304,6 +311,7 @@ export async function supaAuthenticateUser(
mode === RateLimiterMode.Map ||
mode === RateLimiterMode.Crawl ||
mode === RateLimiterMode.CrawlStatus ||
+ mode === RateLimiterMode.Extract ||
mode === RateLimiterMode.Search)
) {
return { success: true, team_id: "preview", chunk: null };