Request limit, how i can do this?

I’m trying to make a request limit to avoid brutal force in a login route, so i find in the npm this package:

But when i add to the providers list, i receive:

Error: Cannot find module 'adonis-fold'
Require stack:
- C:\Users\renat\Desktop\DEV\xx\xx\node_modules\adonis-rate-limiter\providers\RateLimiterProvider.js
- C:\Users\renat\Desktop\DEV\xx\xx\node_modules\require-stack\src\index.js
- C:\Users\renat\Desktop\DEV\xx\xx\node_modules\require-stack\index.js
- C:\Users\renat\Desktop\DEV\xx\xx\node_modules\@adonisjs\fold\src\Ioc\index.js
- C:\Users\renat\Desktop\DEV\xx\xx\node_modules\@adonisjs\fold\index.js
- C:\Users\renat\Desktop\DEV\xx\xx\server.js

1 anonymous

Application crashed, make sure to kill all related running process, fix the issue and re-run the app

So, i search and find this on github:

"In order to use adonis-rate-limiter you need to have [adonis-redis]( installed and configured."

There’s other way to use this feature without redis?

1 Like

After a quick search, i find this package that works correctly for my purpose: