Skip to content

[$250] Show descriptive error when work email with 2FA enabled is entered during onboarding #86194

@MelvinBot

Description

@MelvinBot

Description

During onboarding, when a user enters a work email in the "Add work email" step that belongs to an Expensify account with Two-Factor Authentication (2FA) enabled, a generic "couldn't add email" error is shown. The backend returns a specific error message (<email> is a login for an Expensify account with Two-Factor Authentication (2FA) enabled), but the frontend does not surface this to the user.

Steps to Reproduce

  1. Start the onboarding flow
  2. Reach the "Add work email" step
  3. Enter an email address that is already associated with an Expensify account that has 2FA enabled
  4. Observe the error

Expected Behavior

The user should see a descriptive error message explaining that the email they entered is associated with an account that has 2FA enabled, so they understand it's a configuration issue on their end — not a system failure.

Actual Behavior

A generic "couldn't add email" error is displayed, leaving the user with the impression that something is broken on Expensify's side.

Additional Context

  • The backend already returns the specific error: <email> is a login for an Expensify account with Two-Factor Authentication (2FA) enabled.
  • The onboardingErrorMessage field contains this message, but the frontend likely needs to be updated to display it properly instead of falling back to a generic error.
  • This is believed to be a frontend-only fix.
Issue OwnerCurrent Issue Owner: @mnshrm
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022036405801150652936
  • Upwork Job ID: 2036405801150652936
  • Last Price Increase: 2026-04-07

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions