Skip to content

[BUG] #13928

Description

@mirko-speranza

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

After encountering an authentication token error in Claude Code for Windows, I was asked to re‑log in. Following this, all Claude Code sessions disappeared (Claude sessions remained intact). Attempts to restore sessions by deleting the Claude Code token in the config section partially worked, but the application continued to request re‑login. Upon re‑logging, sessions vanished again. After repeated attempts, I am now unable to log in at all, as the email verification step fails (no verification email is sent).

What Should Happen?

I should see the old sessions that are, in any case, persisted in my folders. And I should be able to log in, but I cannot.

Error Messages/Logs

API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."},"request_id":"req_011CW5QrfBcTHsFD5m4XNwzA"} · Please run /login

OAuth token revoked · Please run /login

Steps to Reproduce

Steps to Reproduce

  • Use Claude Code for Windows as normal.
  • Encounter an auth token error.
  • Re‑log when prompted.
  • Observe that Claude Code sessions are gone (Claude sessions remain).
  • Delete the Claude Code token in the config section.
  • Sessions reappear but are unusable (still asks to re‑log).
  • Re‑log again.
  • Sessions disappear once more.
  • Repeat the above steps several times.
  • Eventually, login becomes impossible because the email verification step fails (no email is sent).

Expected Behavior

  • Sessions should remain intact after re‑logging.
  • Email verification should reliably send a verification email.
  • Deleting the token should not cause sessions to toggle between visible/unusable and missing.

Actual Behavior

  • Sessions disappear after re‑logging.
  • Deleting the token restores sessions, but they remain unusable.
  • Re‑logging causes sessions to vanish again.
  • Login is now blocked entirely due to failed email verification (no email received).

Environment

  • App: Claude Code for Windows
  • Platform: Windows 11
  • Frequency: Consistently reproducible after auth token error
  • Severity: Critical – prevents login and use of Claude Code sessions

Impact
I am currently stuck and unable to use Claude Code for Windows at all. Sessions are inaccessible, and the failed email verification step blocks login.

When I re‑log, I see the following (screenshot attached):
Image
If I delete the auth token, I see this instead (screenshot attached):
Image

So let’s be blunt: if the client’s local session data is actually bound to the auth token, that’s a catastrophic design flaw. It effectively nukes user sessions on re‑auth, makes them unusable when the token is removed, and leaves the user stuck in a loop of disappearing/restored-but-broken sessions. Now the login process itself is bricked because email verification doesn’t even send.
This isn’t just an inconvenience — it’s a critical bug that wipes out usability. Binding client data to a volatile auth token is the kind of mistake that breaks trust in the product. Please fix this properly, because right now Claude Code for Windows is unusable.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.0.65 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:autharea:coreautocloseIssue will be closed automaticallybugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions