Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

keyPrefix must be a string #87

Open
Borales opened this issue Dec 21, 2021 · 3 comments
Open

keyPrefix must be a string #87

Borales opened this issue Dec 21, 2021 · 3 comments

Comments

@Borales
Copy link
Contributor

Borales commented Dec 21, 2021

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
Copy link

behrad commented Dec 29, 2021

Any solution?

@behrad
Copy link

behrad commented Dec 29, 2021

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

@Borales
Copy link
Contributor Author

Borales commented Dec 29, 2021

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

  • not being able to disable rate-limit for certain controllers
  • using a custom value for limiting (username)
  • IP whitelist for IP ranges

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants