You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
yuudachi/packages/http/src/util/verifyRequest.ts
Line 16 in e398023
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
The text was updated successfully, but these errors were encountered: