{"version":"2.1.290","anchor":"existing-sign-in-detection-helper","canonical_anchor":"existing-sign-in-detection-helper","heading":"Claude Code can detect an existing sign-in from token variables","tier":"notice","area":"Auth","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290\/e\/existing-sign-in-detection-helper","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290","markdown":"### Claude Code can detect an existing sign-in from token variables\n\nA new check finds out whether a usable sign-in already exists, for example from `CLAUDE_CODE_OAUTH_TOKEN`\n\n**Unclear.** What part of Claude Code uses this check is not known.\n\n**What**\n\nClaude Code has a new check for whether you are already signed in. It looks at sources such as these environment variables (settings you pass to a program through your shell):\n\n- `CLAUDE_CODE_OAUTH_TOKEN`\n\n- `CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR`\n\n- `CCR_OAUTH_TOKEN_FILE`\n\nThe check reports no usable sign-in when a gateway is in use or when `forceLoginOrgUUID` is set. If the check itself fails, Claude Code logs \"Existing sign-in check failed\".\n\n**Why**\n\nThis gives Claude Code a way to tell whether a sign-in is already available, which could be used by the login flow.\n\n- Area: Auth\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}