Skip to content

Sign in - Single button press sends 4-5 magic code emails #95705

Description

@grgia

Version Number: 9.4.32-0
Reproducible in staging?: Yes
Reproducible in production?: Unknown, believed to be a staging regression
If this was caught during regression testing, add the test name, ID and link from BrowserStack: N/A
Email or phone of affected tester (no customers): georgia+merge5@expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @grgia
Slack conversation: #fireroom-2026-07-08-notifications-broken

Action Performed:

  1. Go to staging.new.expensify.com while signed out
  2. Enter an email address and press the sign in button once
  3. Check the inbox for that account

Expected Result:

One magic code email is sent

Actual Result:

4-5 magic code emails arrive for the single button press. Logs confirm the client sends one BeginSignIn followed ~1 second later by 4-5 parallel RequestNewValidateCode API calls (within 5ms of each other, same deviceID). The backend correctly sends one email per request, so the duplication is client-side. The resendValidateCode throttle (maxAttempts 5) is the only thing capping the email count.

Workaround:

Yes, sign in works normally with the most recent code. The extra emails are noise.

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Screen.Recording.2026-07-09.at.14.35.44.mov

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.EngineeringHourlyKSv2ReviewingHas a PR in review

Type

No type

Fields

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