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
- Start the onboarding flow
- Reach the "Add work email" step
- Enter an email address that is already associated with an Expensify account that has 2FA enabled
- 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 Owner
Current 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
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
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
<email> is a login for an Expensify account with Two-Factor Authentication (2FA) enabled.onboardingErrorMessagefield contains this message, but the frontend likely needs to be updated to display it properly instead of falling back to a generic error.Issue Owner
Current Issue Owner: @mnshrmUpwork Automation - Do Not Edit