Skip to content

(bug) Resending a one-time login code after the flow expires reports HTTP 200 and a generic failure #5646

Description

@mmabrouk

When I sit on the login code-entry screen past the flow's lifetime and click "Resend one-time password", the request to /api/auth/signinup/code/resend returns HTTP 200 with body {"status":"RESTART_FLOW_ERROR"}, no email is sent, and the UI shows only "Resend OTP failed. Please try again." Nothing tells me the login attempt expired or that I need to start over; the control that actually recovers the flow is the unlabeled "Continue with OTP" button behind it.

Steps to reproduce:

  1. Request a login code, wait ~45 minutes without entering it.
  2. Click "Resend one-time password".
  3. Observe the 200 + RESTART_FLOW_ERROR response, no email, and the generic failure message.

Seen on staging v0.107.0 during release QA (2026-08-02); auth flow predates the release.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions