[GH-ISSUE #2791] Resend Audience Sync Plugin: Auto-add users to Resend audience on marketing opt-in #9350

Closed
opened 2026-04-13 04:47:19 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @PinkyCodeMaster on GitHub (May 25, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2791

Is this suited for github?

  • Yes, this is suited for github

I want to automatically sync users’ marketing preferences in Better Auth with a Resend audience. Right now, there’s no built-in way to add/remove users from a Resend audience based on their opt-in/out status during signup or profile updates.

Describe the solution you'd like

A Better Auth plugin that:
Adds users to a specified Resend audience if they opt in to marketing.
Unsubscribes (or removes) users from the audience if they opt out.
Optionally updates existing contacts if their preference changes.
Uses the Resend Node SDK and allows audience ID/configuration.

Describe alternatives you've considered

Manually syncing users with Resend via external scripts.
Using webhooks, but this is clunky and not integrated with Better Auth’s plugin system.

Additional context

This would streamline email marketing workflows and keep user preferences in sync.
Resend API docs: https://resend.com/docs/api-reference/contacts

Originally created by @PinkyCodeMaster on GitHub (May 25, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2791 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. I want to automatically sync users’ marketing preferences in Better Auth with a Resend audience. Right now, there’s no built-in way to add/remove users from a Resend audience based on their opt-in/out status during signup or profile updates. ### Describe the solution you'd like A Better Auth plugin that: Adds users to a specified Resend audience if they opt in to marketing. Unsubscribes (or removes) users from the audience if they opt out. Optionally updates existing contacts if their preference changes. Uses the Resend Node SDK and allows audience ID/configuration. ### Describe alternatives you've considered Manually syncing users with Resend via external scripts. Using webhooks, but this is clunky and not integrated with Better Auth’s plugin system. ### Additional context This would streamline email marketing workflows and keep user preferences in sync. Resend API docs: https://resend.com/docs/api-reference/contacts
GiteaMirror added the locked label 2026-04-13 04:47:19 -05:00
Author
Owner

@Kinfe123 commented on GitHub (May 28, 2025):

We don't currently have a direct integration with Resend, but we'd love to see how it could look when included as a plugin. Feel free to explore it or share a you thoughts — but for now you have stitch your own solution to make it work!

<!-- gh-comment-id:2917618401 --> @Kinfe123 commented on GitHub (May 28, 2025): We don't currently have a direct integration with Resend, but we'd love to see how it could look when included as a plugin. Feel free to explore it or share a you thoughts — but for now you have stitch your own solution to make it work!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9350