mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 15:59:04 +08:00
Update auth.ts
This commit is contained in:
parent
51cb4b1615
commit
14f696805c
@ -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 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user