Skip to content

fix(auth): stop unhandled rejections from FxA sign-in#6765

Draft
groovecoder wants to merge 1 commit into
mainfrom
mntor-3923
Draft

fix(auth): stop unhandled rejections from FxA sign-in#6765
groovecoder wants to merge 1 commit into
mainfrom
mntor-3923

Conversation

@groovecoder

Copy link
Copy Markdown
Member

signIn fetches and then redirects the page to FxA. When the browser aborts an in-flight fetch during that redirect, it rejects with a network TypeError. Every call site voided the promise, so the rejection surfaced as an unhandled rejection in Sentry.

A shared signInToFxa wrapper catches the rejection. It drops the expected network TypeError and reports anything else as handled.

References:

Jira: MNTOR-3923

signIn fetches and then redirects the page to FxA. When the browser
aborts an in-flight fetch during that redirect, it rejects with a
network TypeError. Every call site voided the promise, so the rejection
surfaced as an unhandled rejection in Sentry.

A shared signInToFxa wrapper catches the rejection. It drops the
expected network TypeError and reports anything else as handled.

Fixes MNTOR-3923
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.

1 participant