We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca34518 commit b30218bCopy full SHA for b30218b
1 file changed
examples/node-16-9-1/express-4-16-1/full_protection/index.js
@@ -6,7 +6,7 @@ const crowdhandler = require("crowdhandler-sdk");
6
const crowdHandlerMiddleware = async (req, res, next) => {
7
const publicKey = "YOUR_PUBLIC_KEY";
8
const publicClient = new crowdhandler.PublicClient(publicKey);
9
- const chContext = new crowdhandler.RequestContext(req, res);
+ const chContext = new crowdhandler.RequestContext({request: req, response: res});
10
const chGatekeeper = new crowdhandler.Gatekeeper(publicClient, chContext, {
11
publicKey: publicKey,
12
});
0 commit comments