I want to generate a signature in Node.js. Here is a python example:
signature = hmac.new(SECRET, msg=message, digestmod=hashlib.sha256).hexdigest().upper()
I have this:
signature = crypto.createHmac('sha256', SECRET).update(message).digest('hex').toUpperCase()
What am I doing wrong?