{"version":"2.1.337","anchor":"hybrid-gateway-invalid-grant-refresh-now-only-clears-sign-in","canonical_anchor":"hybrid-gateway-invalid-grant-refresh-now-only-clears-sign-in","heading":"A failed sign-in refresh no longer signs out a newer sign-in","tier":"notice","area":"Auth","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/hybrid-gateway-invalid-grant-refresh-now-only-clears-sign-in","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### A failed sign-in refresh no longer signs out a newer sign-in\n\nWhen a sign-in refresh fails with `invalid_grant`, Claude Code now clears sign-in state only if you have not signed in again meanwhile\n\n**What**\n\nWith the hybrid gateway sign-in, Claude Code renews your sign-in in the background through your identity provider. An identity provider is the service your organisation uses to log you in. That renewal can fail with an `invalid_grant` error, which means the stored credential is no longer accepted.\n\nOn that error, Claude Code used to always clear your sign-in. Now it first records the used-up credential. It then clears your sign-in only if you are still in the same session as when the renewal started. A session here means your current signed-in state. You are still asked to sign in again.\n\n**Why**\n\nBefore, if you signed in again while a renewal was failing, the failure could wipe out your fresh sign-in and log you straight back out.\n\n- Area: Auth\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}