Skip to content

Commit

Permalink
Update auth.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nickscamara committed Jan 20, 2025
1 parent 1ca50e6 commit 240e4e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/api/src/controllers/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 240e4e4

Please sign in to comment.