Skip to content

[$250] [Add Work Email] Handle the SSO and SAML errors better #63704

@trjExpensify

Description

@trjExpensify

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v9.1.60-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: No
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation (hyperlinked to channel name): #convert

Action Performed:

  1. Create an account on a private domain with 2FA enabled
  2. Log out
  3. Create an account on a public email address
  4. Enter the private email address from step 1 in the "Add work email" step of the onboarding modal

Expected Result:

... continuing the steps from above:

  1. The "couldn't add work email" error page appears:
Image
  1. Clicking Got it moves the user forward to the next step of the onboarding modal (effectively "skip" on AddWorkEmail) -- @blimpich confirming this is what was supposed to happen, it's not super clear in the doc?).

Actual Result:

"401 work account uses 2FA" error appears in-line the field input.

Image

Workaround:

N/A

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

In-line above.

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021932476889060975362
  • Upwork Job ID: 1932476889060975362
  • Last Price Increase: 2025-06-10
  • Automatic offers:
    • allgandalf | Contributor | 107628043
Issue OwnerCurrent Issue Owner: @dylanexpensify

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions