https://github.com/lucia-auth/lucia/blob/main/pages/rate-limit/token-bucket.md
values used in example token buckets (5) are different from the ones mentioned in comment (10).
|
// Bucket that has 10 tokens max and refills at a rate of 30 seconds/token |
|
const ratelimit = new TokenBucketRateLimit<string>(5, 30); |
|
// Bucket that has 10 tokens max and refills at a rate of 30 seconds/token |
|
const ratelimit = new TokenBucketRateLimit<string>("ip", 5, 30); |
when it happened:
8aa5adf
https://github.com/lucia-auth/lucia/blob/main/pages/rate-limit/token-bucket.md
values used in example token buckets (5) are different from the ones mentioned in comment (10).
lucia/pages/rate-limit/token-bucket.md
Line 59 in bcee386
lucia/pages/rate-limit/token-bucket.md
Line 60 in bcee386
lucia/pages/rate-limit/token-bucket.md
Line 151 in bcee386
lucia/pages/rate-limit/token-bucket.md
Line 152 in bcee386
when it happened:
8aa5adf