From e6c3f209445158afcd1b048bacc1e924509da10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Thu, 6 Mar 2025 21:08:09 +0100 Subject: [PATCH] fix(preview): temporarily disable --- apps/api/src/controllers/auth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts index a5aed8ff..f21eaf92 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) {