A login code request times out

Someone requests a one-time sign-in code and the app keeps saying it’s sending. Recreate a slow code service and see what happens when the app stops waiting.

Reproduce the issue

Send the code in the original app. Then switch to the version with timeout handling and send it again to compare what the user sees.

accounts.northline.example/sign-in
NorthlineProduct workspace

Request trace

0 events
No requests yet

The next app action starts the trace.

What the trace shows

The client stops waiting at three seconds. The first fixture would reply after 4.5 seconds, so the trace has no HTTP status. The original screen stays in its sending state because it misses the client timeout. A late reply alone can’t tell you whether the service sent a code.

Change the app

Handle the timeout separately from HTTP errors. Clear the pending state and tell the person the request couldn’t be confirmed. Before enabling a retry in a real app, check the provider’s resend or idempotency rules. Here the manual retry uses a separate, available service fixture.

Verify the result

  • With the same delayed fixture, the send button leaves its pending state at the client deadline.
  • A manual retry gets a 202 and the app asks the person to check their inbox. Delivery itself is a separate check.
Configure API response delays