{"version":"2.1.327","anchor":"oauth-scopes-env-dropped-when-only-an-access-token-is-suppli","canonical_anchor":"oauth-scopes-env-dropped-when-only-an-access-token-is-suppli","heading":"Leftover OAuth scopes are cleared when you sign in with only an access token","tier":"notice","area":"Auth","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/oauth-scopes-env-dropped-when-only-an-access-token-is-suppli","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Leftover OAuth scopes are cleared when you sign in with only an access token\n\nWith `CLAUDE_CODE_OAUTH_TOKEN` set and no refresh token, Claude Code now deletes any inherited `CLAUDE_CODE_OAUTH_SCOPES`\n\n**What**\n\nIf `CLAUDE_CODE_OAUTH_TOKEN` is set without a refresh token, Claude Code now deletes any `CLAUDE_CODE_OAUTH_SCOPES` value it inherited. `CLAUDE_CODE_OAUTH_SCOPES` lists the permissions a sign-in token was issued with. The check ignores letter case.\n\n**Why**\n\nScopes left over from another setup are no longer applied to a bare access token.\n\n- Area: Auth\n- Names: `CLAUDE_CODE_OAUTH_TOKEN`, `CLAUDE_CODE_OAUTH_SCOPES`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}