mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-13 09:58:59 +08:00
Update auth.ts
This commit is contained in:
parent
51cb4b1615
commit
14f696805c
@ -251,6 +251,13 @@ export async function supaAuthenticateUser(
|
|||||||
subscriptionData.plan,
|
subscriptionData.plan,
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case RateLimiterMode.Extract:
|
||||||
|
rateLimiter = getRateLimiter(
|
||||||
|
RateLimiterMode.Extract,
|
||||||
|
token,
|
||||||
|
subscriptionData.plan,
|
||||||
|
);
|
||||||
|
break;
|
||||||
case RateLimiterMode.CrawlStatus:
|
case RateLimiterMode.CrawlStatus:
|
||||||
rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token);
|
rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token);
|
||||||
break;
|
break;
|
||||||
@ -304,6 +311,7 @@ export async function supaAuthenticateUser(
|
|||||||
mode === RateLimiterMode.Map ||
|
mode === RateLimiterMode.Map ||
|
||||||
mode === RateLimiterMode.Crawl ||
|
mode === RateLimiterMode.Crawl ||
|
||||||
mode === RateLimiterMode.CrawlStatus ||
|
mode === RateLimiterMode.CrawlStatus ||
|
||||||
|
mode === RateLimiterMode.Extract ||
|
||||||
mode === RateLimiterMode.Search)
|
mode === RateLimiterMode.Search)
|
||||||
) {
|
) {
|
||||||
return { success: true, team_id: "preview", chunk: null };
|
return { success: true, team_id: "preview", chunk: null };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user