Repository navigation
Conversation
The Resend emulator dispatched email, domain, and contact events, but nothing could subscribe to them, and deliveries would have carried GitHub's X-Hub-Signature-256 header. Resend delivers webhooks through Svix, so receivers verify them with resend.webhooks.verify() or the svix library. - Deliveries carry svix-id (a msg_ id per delivery), svix-timestamp in seconds, and svix-signature "v1,<base64 HMAC-SHA256>" over "<id>.<timestamp>.<body>", keyed with the base64-decoded part of the whsec_ signing secret. - POST, GET, PATCH, and DELETE /webhooks follow Resend's Webhooks API. Create returns the signing secret, retrieve includes it, and list leaves it out. A webhook receives only its subscribed events, and a disabled one receives none. - resend.webhooks in seed config registers endpoints. Without events, a seeded webhook subscribes to every event the emulator sends. Without signing_secret, it gets one derived from the endpoint URL, so the secret survives resets and restarts. Co-authored-by: Xiro The Dev <140150717+xirothedev@users.noreply.github.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| name: "resend", | ||
| register(app: Hono<AppEnv>, store: Store, webhooks: WebhookDispatcher, baseUrl: string, tokenMap?: TokenMap): void { | ||
| webhooks.setHeaderFactory(svixWebhookHeaders); | ||
|
|
Contributor
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
svix-id,svix-timestamp, andsvix-signatureheaders signed with the webhook'swhsec_secret, soresend.webhooks.verify()and thesvixlibrary accept them.POST,GET,PATCH, andDELETE /webhookswith Resend's response shapes, plusresend.webhooksseed config with stable derived secrets. Closes feat(sepay): SePay emulator + fix(resend): Svix webhook delivery #211, Add a Resend recipient allowlist and send-attempt log #271.