Cannot use `c.get` in `hono-rate-limiter`
I am trying to use the
hono-rate-limiter
package to create a middleware that enforces rate limits based on which consumer is accessing the API.
Here's my implementation:
Both the limit
and keyGenerator
properties seem to be typed to have c: Context
. But when I try and use c.get()
, I get the following error:
Any idea why this is happening? Am I not allowed to use c.get
in the limit
and keyGenerator
props?2 Replies