-
-
Notifications
You must be signed in to change notification settings - Fork 528
Open
Description
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
| // Bucket that has 10 tokens max and refills at a rate of 30 seconds/token |
lucia/pages/rate-limit/token-bucket.md
Line 60 in bcee386
| const ratelimit = new TokenBucketRateLimit<string>(5, 30); |
lucia/pages/rate-limit/token-bucket.md
Line 151 in bcee386
| // Bucket that has 10 tokens max and refills at a rate of 30 seconds/token |
lucia/pages/rate-limit/token-bucket.md
Line 152 in bcee386
| const ratelimit = new TokenBucketRateLimit<string>("ip", 5, 30); |
when it happened:
8aa5adf
Metadata
Metadata
Assignees
Labels
No labels