What
When a sign-in is refused, Claude Code now undoes it. It puts back the login details you had before and cancels the refused access token, the credential that sign-in produced. If it cannot confirm the undo worked, it shows "The refused sign-in could not be fully undone" and asks you to sign in again with claude auth login or /login.
Why
A failed or refused sign-in no longer quietly leaves unusable login details behind.
Names in the bundleclaude auth login/login
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.
Added since
A small documentation edit on Create the app registration that represents the Claude API audience. touched a line naming /login after this was published.
Use this path when your workload runs in an AKS pod. Entra Workload Identity federates a Kubernetes service account with a user-assigned managed identity: Kubernetes projects a service account token (signed by the AKS cluster's OIDC issuer…manage-claude/wif-providers/azure see the edit
Confirmed since
Anthropic's documentation has since written up /login, on Error reference.
Each of these messages from `/login`, `claude auth login`, or `claude setup-token` means Claude Code couldn't open the port on `127.0.0.1` where your browser returns the sign-in result.errors see the edit
Confirmed since
Anthropic's documentation has since written up claude auth login, on Error reference.
Each of these messages from `/login`, `claude auth login`, or `claude setup-token` means Claude Code couldn't open the port on `127.0.0.1` where your browser returns the sign-in result.errors see the edit
Added since
A small documentation edit on Deploy self-hosted environments to production touched a line naming claude auth login after this was published.
* **Interactive `claude auth login`**: signs in through `claude.ai`, `claude.com`, and `platform.claude.com`. The [guided setup](/docs/en/self-hosted-environments-quickstart#run-the-guided-setup), `doctor`'s signed-in mode, and [CI dispatc…self-hosted-environments-deploy see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
A small documentation edit on Deploy self-hosted environments to production touched a line naming claude auth login after this was…