Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.326 ·

Sign-in and sign-out give clearer messages, and logout checks that your login was revoked

Login, logout and OAuth token handling change: clearer sign-in errors, a revoke check on logout and a warning about CLAUDE_CODE_OAUTH_TOKEN

Group of 4 You'll notice Improvements
JSON All of v2.1.326
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
AuthArea: what it touches
ImprovementsKind: in v2.1.326,
ImprovementsSection of the release

What

OAuth is the sign-in method Claude Code uses with your Anthropic account. Several parts of signing in and out changed.

  • /login warning: a new message says CLAUDE_CODE_OAUTH_TOKEN was set in your environment when /login started, and that the session will use the new credentials.
  • Rejected token: when a request fails with a 401 (not signed in) and the token came from the environment, Claude Code now tells an embedding app's heard hook which token failed before it waits for a replacement token.
  • Logout: Claude Code now revokes the Claude.ai refresh token and checks the answer. If Anthropic does not confirm, it warns "Logged out on this computer, but Anthropic didn't confirm the login was revoked." and still completes. Before, the result was ignored. If the config file cannot be saved, logout fails with "logout could not save the config file".
  • Pasting a code: a bad pasted code is now shown as a problem on the waiting screen instead of an "Invalid code" error, and pressing no clears the pasted text or the problem before going back.
  • Messages: a failed token exchange now says "Couldn't finish signing in. Try again." The setup-token success screen now says "Long-lived authentication token created" and adds where the token can be revoked.

Why

You are told when logout may have left your login active on Anthropic's side, and sign-in mistakes are easier to recover from. If you keep CLAUDE_CODE_OAUTH_TOKEN set, you now know /login replaces it for that session.

Read from
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up CLAUDE_CODE_OAUTH_TOKEN, on Configure permissions. Your setup might lack managed settings, a `managed-mcp.json` file, and a Team or Enterprise `/login` as the session's credential. In that setup, the mod can approve a call that a `PreToolUse` hook blocked, and some calls that a deny rule r… permissions see the edit
Added since A small documentation edit on Get started with Claude Code in the cloud touched a line naming /login after this was published. If Claude Code's command menu shows `No commands match "/web-setup"`, or submitting `/web-setup` returns `Unknown command: /web-setup` or says it's unavailable, the command is hidden because a requirement isn't met. The cause is usually th… web-quickstart see the edit
Confirmed since Anthropic's documentation has since written up /login, on Claude Code changelog. * Fixed an MCP server's long question being cut off after one row, text fields hiding long pastes with no sign, and a doubled divider line in `/plugin`'s options and `/login`'s Bedrock and Vertex steps changelog see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up /login, on Claude Code changelog.
Anthropic's release notes agreeFixed "Sign in with your Console account" in /login replacing your Claude subscription login when the browser sign-in used your Claude plan…

See this entry in the whole of v2.1.326 →

Feedback