Skip to content
Compare
Choose a tag to compare
@joaquim-verges joaquim-verges released this 23 May 21:08
· 83 commits to main since this release
f9b34ff

Minor Changes

  • #7103 f3abea3 Thanks @jnsdls! - Added webhook verification functionality to securely verify incoming webhooks from thirdweb. This includes:

    • New Webhook.parse function to verify webhook signatures and timestamps
    • Support for both x-payload-signature and x-pay-signature header formats
    • Timestamp verification with configurable tolerance
    • Version 2 webhook payload type support

    Example usage:

    import { Webhook } from "thirdweb/bridge";
    
    const webhook = await Webhook.parse(
      payload,
      headers,
      secret,
      300, // optional tolerance in seconds
    );