onur-ozkan / nestjs-rate-limiter

Highly configurable and extensible rate limiter library
https://npmjs.com/package/nestjs-rate-limiter
MIT License
238 stars 43 forks source link

keyPrefix must be a string #87

Open Borales opened 2 years ago

Borales commented 2 years ago

According to the types - https://github.com/ozkanonur/nestjs-rate-limiter/blob/master/lib/rate-limiter.interface.ts#L8 this section is no longer valid: https://github.com/ozkanonur/nestjs-rate-limiter#dynamic-keyprefix

behrad commented 2 years ago

Any solution?

behrad commented 2 years ago

Exposing underlying rate-limiter-flexible instance would be handy to build custom (nested) limiters in services/controllers

Borales commented 2 years ago

unfortunately, I had to abandon this package and use rate-limiter-flexible directly since it lacks a few features: