Skip to content

Login flow skips magic code prompt for 2FA-enabled accounts #65388

@m-natarajan

Description

@m-natarajan

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: 9.1.74-9
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @cead22
Slack conversation (hyperlinked to channel name): #Expensify Bugs

Action Performed:

  1. Enter your email on the login page (for an account with 2FA enabled)
  2. Observe that you're prompted for the authenticator password immediately, not the magic code
  3. Enter the authenticator password — it fails
  4. Click “Go back,” then click “Next” again (email is still filled in)
  5. This time, you’re prompted for the magic code, then the authenticator password
  6. Login is successful after completing both steps.

Expected Result:

Users should be prompted first for the magic code, then for the authenticator password in a consistent, sequential flow.

Actual Result:

The flow incorrectly prompts for the authenticator password first, resulting in failed login and requiring the user to restart the process manually.

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

Add any screenshot/video evidence
Recording.1371.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021940739167765805147
  • Upwork Job ID: 1940739167765805147
  • Last Price Increase: 2025-07-03
Issue OwnerCurrent Issue Owner: @brunovjk

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions