Skip to content

Commit b30218b

Browse files
Update full_protection example
1 parent ca34518 commit b30218b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • examples/node-16-9-1/express-4-16-1/full_protection

examples/node-16-9-1/express-4-16-1/full_protection/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const crowdhandler = require("crowdhandler-sdk");
66
const crowdHandlerMiddleware = async (req, res, next) => {
77
const publicKey = "YOUR_PUBLIC_KEY";
88
const publicClient = new crowdhandler.PublicClient(publicKey);
9-
const chContext = new crowdhandler.RequestContext(req, res);
9+
const chContext = new crowdhandler.RequestContext({request: req, response: res});
1010
const chGatekeeper = new crowdhandler.Gatekeeper(publicClient, chContext, {
1111
publicKey: publicKey,
1212
});

0 commit comments

Comments
 (0)