Created
June 24, 2018 11:39
-
-
Save AndrejGajdos/9eb7b3cb7d8db60d441a9ec32ec1597e to your computer and use it in GitHub Desktop.
Adding rate limiting. Whole file is available https://github.com/AndrejGajdos/auth-flow-spa-node-react/blob/master/script/server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(ratelimit({ | |
db, | |
duration: 60000, | |
max: 100, | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment