Jblew / firebase-functions-rate-limiter

Js/ts library that allows you to set per-time, per-user or per-anything limits for calling Firebase cloud functions
MIT License
100 stars 15 forks source link

FEATURE - Cooldown penalty period after exceeding limit #39

Open Wian-TMC opened 1 year ago

Wian-TMC commented 1 year ago

For example, a user can only make 10 requests every 5 seconds. If a user exceeds the limit (11 calls in the 5 seconds window), they can be penalised (for example - one hour) before they are able to make requests again.