{"version":"2.1.221","anchor":"ccr-client-can-adopt-refreshed-auth-pushed-over-the-event-st","canonical_anchor":"ccr-client-can-adopt-refreshed-auth-pushed-over-the-event-st","heading":"CCR client can adopt refreshed auth pushed over the event stream","tier":"internal","area":"Auth","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.221\/e\/ccr-client-can-adopt-refreshed-auth-pushed-over-the-event-st","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.221","markdown":"### CCR client can adopt refreshed auth pushed over the event stream\n\nLong sessions can pick up fresh credentials pushed over the live connection instead of dropping out.\n\n**What**\n\nThe realtime client can take new credentials delivered inside the event stream instead of waiting for a local refresh.\n\n**Details**\n\n- the client accepts an `adoptRefreshedAuth` callback and invokes it when an event carries `refreshed_auth`\n- session wiring supplies the callback only when `CLAUDE_CODE_ENVIRONMENT_KIND` is unset\n- environments that set `CLAUDE_CODE_ENVIRONMENT_KIND` get no callback and keep the previous behaviour\n\n**Evidence**\n\n`adoptRefreshedAuth`\n\n- Area: Auth\n- Names: `CLAUDE_CODE_ENVIRONMENT_KIND`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 0\/5"}