What is the reason to have a option parameter on both the constructor and getMiddleware?
In the example I see you are creating 2 objects (userBruteforce and globalBruteforce). Why you don't not centralize the configuration in one place (for example the constuctor)?
What is the reason to have a option parameter on both the constructor and
getMiddleware?In the example I see you are creating 2 objects (
userBruteforceandglobalBruteforce). Why you don't not centralize the configuration in one place (for example the constuctor)?