libscie / ResearchEquals.com

Research module server
https://researchequals.com
MIT License
88 stars 10 forks source link

Unsubscribe webhook from Postmark #672

Closed chartgerink closed 1 year ago

chartgerink commented 2 years ago

We will be starting to send more emails to people after they consent. They have the option to do one-click unsubscribes through postmark, but we need a way to update our database and prevent data drift.

I already added a secret to the production environment (POSTMARK_SECRET) for verifying the webhook, but we need to set it up. This means removing the email consent upon unsubscribe.

See also: https://postmarkapp.com/developer/webhooks/subscription-change-webhook#how-you-can-use-the-subscription-change-data

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity.

chartgerink commented 1 year ago

Closing this until it's back on the plan.