π©Notifications
Each honei event will send a notification to third party server with its corresponding data.
{
"event": String,
"status": Number,
"data": String || Object
}Authorization
const crypto = require("crypto");
function verifyToken(clientSecret, nonce, token) {
const hash = crypto.createHash("sha256");
hash.update(nonce + clientSecret);
const generatedToken = hash.digest("base64");
if(generatedToken === token) {
//Is a valid token
}
}
const secret = "your_secret_here";
const token = verifyToken(secret, nonce, token);Last updated