API Key rate limiting confusion

We've implemented rate limiting on our app but it's not behaving how we'd expect.

Because it's based on last_request_at it waits until the number of requests has been reached then will wait the time set and refresh

The docs are confusing as it make it appear that every day the user has 10 requests per day. In reality they have 10 requests but have to wait a day from the last request for it to reset.

We're trying to implement 1000 per hour limit but it doesn't work with the current rate limit behaviour. How do we get it so that it resets once per hour?
API Key plugin for Better Auth.
Was this page helpful?