openclaw/docs/automation
Bradley Priest e7c367ab3c feat(hooks): support custom verifyAuth in transform modules
Add ability for hook mapping transform modules to export a verifyAuth
function for custom authentication (e.g., GitHub HMAC signatures).

When a transform module exports verifyAuth, it runs BEFORE standard
token auth. This enables:

- GitHub webhook signature verification
- Stripe webhook signature verification
- Any external service with custom auth schemes

Changes:
- hooks.ts: Split readJsonBody into readRawBody + parseJsonBody
- hooks-mapping.ts: Add HookVerifyAuthContext type, findMappingVerifyAuth()
- server-http.ts: Check for custom auth before token auth
- webhook.md: Document verifyAuth with GitHub example

Closes: discussion about GitHub webhooks
2026-01-29 20:23:54 +13:00
..
auth-monitoring.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
cron-jobs.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
cron-vs-heartbeat.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
gmail-pubsub.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
poll.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
webhook.md feat(hooks): support custom verifyAuth in transform modules 2026-01-29 20:23:54 +13:00