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
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...
- Finding job
Hi. I am a full-stack developer with experience in developing scalable and user-friendly web applications. I handle both front-end and back-end development, im...
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...