Skip to content

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

fix(preview): temporarily disable

Gergő Móricze6c3f2094451
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index a5aed8ff3..f21eaf927 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -201,6 +201,8 @@ export async function supaAuthenticateUser(
let chunk: AuthCreditUsageChunk | null = null;
let plan: PlanType = "free";
if (token == "this_is_just_a_preview_token") {
+ throw new Error("Unauthenticated Playground calls are temporarily disabled due to abuse. Please sign up.");
+
if (mode == RateLimiterMode.CrawlStatus) {
rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token);
} else if (mode == RateLimiterMode.ExtractStatus) {