{"version":"2.1.329","anchor":"auth-refresh-store-refusal-gets-a-keychain-message","canonical_anchor":"auth-refresh-store-refusal-gets-a-keychain-message","heading":"Clearer error when a refreshed sign-in can't be saved to the Keychain","tier":"notice","area":"Auth","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/auth-refresh-store-refusal-gets-a-keychain-message","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Clearer error when a refreshed sign-in can't be saved to the Keychain\n\nIf Claude Code renews your sign-in but can't save it to the macOS Keychain, it now explains why and what to run\n\n**What**\n\nClaude Code renews your sign-in token (the key that keeps you signed in) from time to time and stores it in the Keychain, the macOS password store. If the renewed token can't be saved, it now shows:\n\n\"Failed to refresh OAuth token: can't save to the Keychain. If locked, run `security unlock-keychain`. If sandboxed, use `claude setup-token`. Otherwise, retry, then `claude auth login`\"\n\nThe message offers a fix for each case:\n\n- `security unlock-keychain` if the Keychain is locked\n\n- `claude setup-token` if Claude Code is running in a sandbox (a restricted environment)\n\n- retrying, then `claude auth login` otherwise\n\n**Why**\n\nA failed sign-in renewal now tells you what went wrong and the command to try next.\n\n- Area: Auth\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}