Framework does not support integer choices
Opened this issue · 0 comments
almostSouji commented
Verification has to happen with the raw body, not the stringified JSON body.
Discord sends "1.0"
for integers, which is parsed to "1"
, failing the hash comparison.
Getting the raw body seems to be annoyingly complicated in fastify: https://www.npmjs.com/package/fastify-raw-body