Skip to content

Release 2.5.0: verify webhook signatures - #5

Merged
0xBitBuster merged 1 commit into
mainfrom
feat/webhooks
Dec 4, 2026
Merged

0xBitBuster merged 1 commit into
mainfrom
feat/webhooks

Conversation

@0xBitBuster

Copy link
Copy Markdown
Contributor

Release 2.5.0: verify webhook signatures

  • verifyWebhook (named in each language's style) checks a TryItOn webhook's Standard Webhooks signature and returns the event.
    • Any signature may match during a secret rotation.
    • Timestamps must be within 5 minutes.
    • Otherwise it raises the SDK's error with errorName WebhookVerificationFailed.
  • Tests: the shared verification cases (webhook-cases.json from the backend contract), 21 cases.
  • Wording: live docs and comments say "primary stream" / "backup stream" instead of vendor names.

After merge: tag v2.5.0 on main and publish.

🤖 Generated with Claude Code

- verifyWebhook checks a TryItOn webhook's Standard Webhooks signature (any of the
  signatures during a secret rotation, 5 minute timestamp tolerance) and returns the event.
  Raises the SDK's error with errorName "WebhookVerificationFailed" otherwise.
- Runs the shared verification cases (fixtures/webhook-cases.json from the backend contract).
- Live docs and comments say "primary stream" / "backup stream" instead of vendor names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0xBitBuster
0xBitBuster merged commit 5dbc5f5 into main Dec 4, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant