Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(web): add agent API rate limit identifiers

Richie McIlroy1e05af427cc5
diff --git a/apps/web/lib/rate-limit.ts b/apps/web/lib/rate-limit.ts
index 168a800f1..7cf6ca16a 100644
--- a/apps/web/lib/rate-limit.ts
+++ b/apps/web/lib/rate-limit.ts
@@ -57,6 +57,10 @@ export async function isRateLimited(
* corresponding protection to take effect (see `isRateLimited`).
*/
export const RATE_LIMIT_IDS = {
+ AGENT_TOKEN_EXCHANGE: "rl_agent_token_exchange",
+ AGENT_AUTHORIZATION: "rl_agent_authorization",
+ AGENT_UNLOCK: "rl_agent_unlock",
+ AGENT_LOOM_IMPORT: "rl_loom_import_per_user",
/** Email OTP verification attempts (brute-force guard). Suggested: 10 / 10m per key (email). */
AUTH_OTP_VERIFY: "rl_auth_otp_verify",
/** Email OTP / magic-link send (mailbomb + token-reseed guard). Suggested: 5 / 10m per key (email). */