This code snipping will calculate an HMAC signature for you. Use it to troubleshoot other HMAC calculations.
Use Ngrok (localhost:4040) to:
- Grab the JSON object from the Summary tab.
- From the Headers tab
- Grab the X-Authy-Signature
- Grab the X-Authy-Signature-Nonce
- Edit the hmac.js variables
- Run
node hmac.js
- Output will tell you if sigs match or not.
Get the JSON object from here.
Get the nonce and signature from here.