Skip to content

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

Update auth.ts

Nicolas240e4e4702a0
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index 99ff71c7c..16622bb0d 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -192,6 +192,8 @@ export async function supaAuthenticateUser(
if (token == "this_is_just_a_preview_token") {
if (mode == RateLimiterMode.CrawlStatus) {
rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token);
+ } else if (mode == RateLimiterMode.ExtractStatus) {
+ rateLimiter = getRateLimiter(RateLimiterMode.ExtractStatus, token);
} else {
rateLimiter = getRateLimiter(RateLimiterMode.Preview, token);
}