Skip to content

Commit

Permalink
Install rate limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
thivi committed Apr 29, 2022
1 parent ba6ef36 commit 62188cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/asgardeo-express-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const express = require("express");
const cookieParser = require("cookie-parser");
const config = require("./config");
const ESAPI = require('node-esapi');
const rateLimit = require('express-rate-limit');

const limiter = rateLimit({
max: 100,
Expand Down
1 change: 1 addition & 0 deletions samples/asgardeo-express-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@asgardeo/auth-express": "0.0.1",
"cookie-parser": "^1.4.6",
"express": "^4.17.1",
"express-rate-limit": "^6.4.0",
"node-esapi": "^0.0.1"
}
}

0 comments on commit 62188cd

Please sign in to comment.