Shopify / Shopify/shopify-app-template-node
How to validate webhooks!!
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 434
- PR merge metrics
- No merged PRs in 30d
Description
I submitted my app for review. They rejected it saying that the shop/redact webhook should return status 401 if the request isn't made from Shopify.
Please guide me through it.
app.post('/webhooks/shop/redact',async (req,res)=>{
res.status(200).send({message:'Updated'})
})
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue only identifies the app.post('/webhooks/shop/redact') route; start by locating that webhook entry point in the template and reviewing how Shopify webhook requests are validated. Done means requests not made from Shopify receive HTTP 401, as required by the review feedback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100