{"version":"2.1.329","anchor":"new-oauth-refresh-error-when-macos-keychain-cant-be-saved-t","canonical_anchor":"new-oauth-refresh-error-when-macos-keychain-cant-be-saved-t","heading":"New error when a sign-in refresh cannot be saved to the macOS Keychain","tier":"notice","area":"Auth","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/new-oauth-refresh-error-when-macos-keychain-cant-be-saved-t","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### New error when a sign-in refresh cannot be saved to the macOS Keychain\n\nA token refresh that the macOS Keychain refuses to save now fails with a named error, oauth_refresh_store_refused, and tells you how to fix it\n\n**What**\n\nClaude Code keeps your sign-in fresh by periodically getting a new access token. On a Mac it stores the token in the macOS Keychain, the system's password store. When the Keychain refuses that write, there is now a dedicated error for it.\n\n- The error is `OAuthRefreshStoreRefusedError`. Its message reads: \"OAuth access token could not be refreshed: can't save to the macOS Keychain. Unlock it, run claude outside any sandbox, retry, or sign in again\".\n\n- The SDK schema, the description programs use to read Claude Code's output, lists a new API error kind, `oauth_refresh_store_refused`. It means the Keychain did not take the write, so the refresh token was not sent.\n\n**Why**\n\nIf your sign-in stops refreshing on a Mac, the message now says what went wrong and what to try: unlock the Keychain, run `claude` outside any sandbox (a restricted environment that can block access to the Keychain), retry, or sign in again. Programs built on Claude Code can check for `oauth_refresh_store_refused` to handle this case on its own.\n\n- Area: Auth\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}