Back to All

How to veriffy webhook checksu

const smallcaseAuthId = "XXXX"
const timestamp = "2021-12-20T09:20:53.130Z"
const message = timestamp+smallcaseAuthId;

const secret = 'XXXX';
const options = {
algorithm: 'HS256'
};

const secret = API_SECRET;

const checksum = jwt.sign(
message,
secret,
options
);

should i just use raw concatenated string of timestamp and smallcaseAuthId or put it in json as
to generate json webtoken, a sample code will be appreciated
{
message : message
}