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
- Problem with Google Workspace at DNS Rec...
Hello, I bought a domain at Namecheap, and Google Workspace used to work there, but now that I switched from Custom DNS to Appwrite's nameservers, it doesn't w...
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...