Who should read this release
- Operators:
- Email delivery logs use a consistent recipient field.
- OTP send logs now record how long the email handoff took, the provider's message ID, and the SMTP server response.
- Optional email-event logging for operators who choose the third-party Resend service to send email; ePDS continues to support other email providers.
Minor Changes
-
#197
ce25bebThanks @aspiers! - Email delivery logs use a consistent recipient field.Affects: Operators
Operators: All four email delivery paths now log the recipient as
email: client-branded OTP, standard sign-in OTP, welcome OTP, and backup-email verification. Update structured-log queries forSent client-branded OTP emailto reademailinstead ofto. -
#203
2193515Thanks @aspiers! - OTP send logs now record how long the email handoff took, the provider's message ID, and the SMTP server response.Affects: Operators
Operators: every OTP email completion line (all four paths — client-branded, sign-in, welcome, backup-email verification) now carries
elapsedMs,messageId, andsmtpResponsealongsideemail.messageIdlets these logs be joined to Resend delivery events;elapsedMsisolates a slow SMTP handoff from other causes of late-arriving codes. Failed sends logelapsedMstoo, on the existingbetter-auth: failed to send OTP emailerror line. -
#198
2bf9af4Thanks @aspiers! - Optional email-event logging for operators who choose the third-party Resend service to send email; ePDS continues to support other email providers.Affects: Operators
Operators: ePDS remains compatible with any SMTP provider and does not require Resend. Operators who already use Resend can opt in by registering
https://<AUTH_HOSTNAME>/webhooks/resendfor the documented email events and settingRESEND_WEBHOOK_SECRET; logs include delivery, open, complaint, suppression, and scheduling events. The route verifies each webhook, logs only events whose sender exactly matchesSMTP_FROM, acknowledges unsupported click and inbound events without logging their payloads, and does not persist webhook data.