i am trying to validate my incomming webkooks using crypto on nodeJS
TypeScript
.createHmac("sha1", process.env.WEBHOOK_SIG_KEY!)
.update(`http://my_domain:8000/appwrite/session${JSON.stringify(req.body)}`) // Make sure there isn't a space between the URL and body.
.digest("base64")``` this is what i came up reading the docs but its not the as the signature from the header. can anyone see what i am doing wrong?
TL;DR
Developer is having trouble validating incoming webhooks using crypto in NodeJS. They are using `crypto.createHmac` but the generated signature doesn't match the one from the header. They are looking for help in identifying the issue.Recommended threads
- Appwrite Python SDK Keeps returning the ...
So I have a couple services, one is a scheduling engine responsible for fetching data from a database and launching a containerized micro service to process tha...
- SSR Auth with Tanstack Start requires ha...
I followed the Next.js guide for SSR Auth on https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 I tried to replicate it for Tanstack Start. However, on...
- Invalid token passed in the request
Hello, I have an issue using updateMagicURLSession. I send the email using sendMagicLink, which works fine. When i click the link in the email i get the invali...