Skip to content

[Awaiting payment 2026-01-23][$250] Prevent unnecessary reauthentication after sign out #79209

@mountiny

Description

@mountiny

Coming from here

Right now, after a user signs out, some pending network requests still trigger reauthentication. This results in a lot of auth errors in Sentry that will always fail, since the credentials have already been cleared.
By checking credentials earlier and skipping the reauth flow entirely in this case, we can:

  • Avoid unnecessary API calls
  • Reduce Sentry noise (around ~2 errors per sign-out)
  • Slightly speed up the transition to the sign-in screen
  • Slightly reduce backend load by avoiding failed API calls

Example Sentry issue:
https://expensify.sentry.io/issues/7122416301/?environment=production&query=authentica[…]3A%5Breauthenticate%2CAuthenticate%5D&referrer=issue-stream

Issue OwnerCurrent Issue Owner: @JmillsExpensify

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions