Skip to content

polish(auth): Only fail hard on email send for emails with codes#19968

Merged
dschom merged 1 commit intomainfrom
dont-fail-on-email-send-error
Feb 6, 2026
Merged

polish(auth): Only fail hard on email send for emails with codes#19968
dschom merged 1 commit intomainfrom
dont-fail-on-email-send-error

Conversation

@dschom
Copy link
Copy Markdown
Contributor

@dschom dschom commented Jan 29, 2026

Because

  • We might not want to error out if an email fails to send
  • Some emails are critical, others aren't

This pull request

  • Adds option to suppress an exception on email send
  • Updates auth-server to suppress errors for not critical emails

Issue that this pull request solves

Closes: FXA-13030

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

@dschom dschom requested a review from a team as a code owner January 29, 2026 01:21
Copy link
Copy Markdown
Contributor

@nshirley nshirley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smart, I'll have some to update on my pr, but looks like it's just an optional param 👍

headers: Record<string, string>,
rendered: RenderedTemplate
rendered: RenderedTemplate,
throwErrorOnSendFailure = true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed, should this default to false?

@dschom dschom force-pushed the dont-fail-on-email-send-error branch from ce76f16 to 04f6257 Compare February 6, 2026 02:07
@dschom dschom force-pushed the dont-fail-on-email-send-error branch from 04f6257 to ba7344f Compare February 6, 2026 22:15
@dschom dschom merged commit 079f810 into main Feb 6, 2026
20 checks passed
@dschom dschom deleted the dont-fail-on-email-send-error branch February 6, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants