MCPcopy Create free account
hub / github.com/code100x/daily-code / RateLimiter

Interface RateLimiter

apps/web/lib/auth.ts:47–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45};
46// hsingh's code from cms
47interface RateLimiter {
48 timestamps: Date[];
49}
50const userRateLimits = new Map<string, RateLimiter>();
51
52export const rateLimit = (userId: string, rateLimitCount: number, rateLimitInterval: number): boolean => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected