function (user, context, callback) {
var HttpWritableStream = require('auth0-common-logging').Streams.HttpWritableStream;
var httpWritableStream = new HttpWritableStream('<<sumo end point>>');
var data = '{"Trigger":"data" }';
httpWritableStream.write(data, function() {
// Now the data has been written.
});
// TODO: implement your rule
callback(null, user, context);
}
when I run the above code, I am getting an error like “ERROR: Cannot find module ‘auth0-common-logging’”.
also, I had tried multiple forms such as of require(‘auth0/auth0-common-logging’)
I looks like the auth0-common-logging package is available in via npm for use in your own code, but it is not yet available for use in rules. You can check which packages are available for use in rules at Can I require? - Search which node modules you can use in webtask.io, and you can request new packages be added at the link below: