- Capture the exact raw body bytes.
- Compute HMAC with the HMAC verifier tool.
- Compare encodings (hex vs base64) and prefixes.
- Ensure JSON was not reformatted before verify.
- Add a failing unit test with a fixture.
Tutorial
Debug a webhook HMAC mismatch
Raw body, encoding and constant-time compare.