{"version":"2.1.324","anchor":"oauth-token-ask-from-the-cli-to-the-sdk-host-now-says-what-k","canonical_anchor":"oauth-token-ask-from-the-cli-to-the-sdk-host-now-says-what-k","heading":"Token requests to the host app now say what kind of call was refused","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/oauth-token-ask-from-the-cli-to-the-sdk-host-now-says-what-k","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Token requests to the host app now say what kind of call was refused\n\nWhen Claude Code asks its host app for a fresh sign-in token, it can now say whether a model, connector or other call was refused\n\n**What**\n\nWhen Claude Code runs inside another app, such as Claude Desktop, it can ask that host app for a sign-in token (the OAuth token that shows you are logged in) after the server refuses a call. That request gains an optional `refused_call` field with one of three values:\n\n- `model`\n\n- `connector`\n\n- `other`\n\nFor `connector` or `other`, the host may first check whether its current token is still good. An unrecognised value is treated as if the field were absent. Before, `token_state` was the only thing describing the request.\n\n**Why**\n\nHost apps can avoid renewing a token that still works, which cuts down on needless renewals and chains of failed requests.\n\n- Area: SDK\n- Names: `refused_call`\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}