Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
feat(auth): extend rate limiter logging to make it easier to debug
Gergő Móricz6776aee1c36b
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.tsindex 1b94fb014..8f4d49ea0 100644--- a/apps/api/src/controllers/auth.ts+++ b/apps/api/src/controllers/auth.ts@@ -270,7 +270,7 @@ export async function supaAuthenticateUser(try {await rateLimiter.consume(team_endpoint_token);} catch (rateLimiterRes) {- logger.error(`Rate limit exceeded: ${rateLimiterRes}`, { teamId });+ logger.error(`Rate limit exceeded: ${rateLimiterRes}`, { teamId, priceId, plan: subscriptionData?.plan, mode, rateLimiterRes });const secs = Math.round(rateLimiterRes.msBeforeNext / 1000) || 1;const retryDate = new Date(Date.now() + rateLimiterRes.msBeforeNext);