{"version":"2.1.336","anchor":"new-typed-api-error-kind-login-replaces-organization-sign-in","canonical_anchor":"new-typed-api-error-kind-login-replaces-organization-sign-in","heading":"Organization sign-in gets a host consent dialog, a new error kind and per-account device records","tier":"use","area":"SDK","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/new-typed-api-error-kind-login-replaces-organization-sign-in","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Organization sign-in gets a host consent dialog, a new error kind and per-account device records\n\nA consent dialog warns when org settings send prompts and cloud sign-in to a host; a new error kind and per-account trusted-device records come with it\n\n**What**\n\nSome sessions sign in through an organization that is managed in the Enterprise Admin Console. Several related changes affect these sessions.\n\n- Consent dialog: a new dialog reads \"Your organization's settings send your prompts, and the cloud sign-in that this computer uses, to this host:\". It tells you to accept only if you trust the organization and recognize the host.\n\n- New error kind: in results sent to programs that host Claude Code, the `api_error` kind list gains `login_replaces_organization_sign_in`. It is sent with `authentication_failed` in an organization-managed session, where choosing another account at `\/login` would replace that sign-in. Hosts are told not to open their own sign-in screen. Where `no_credential` would also apply, this value is sent instead.\n\n- Per-account device records: the record of a trusted device enrolled after a refusal is now read from `trustedDeviceByAccount` for the current account, not from one shared value. The helper behind this was renamed to `isDeviceTokenRecoveryOn`.\n\n**Why**\n\nYou are asked before your organization's settings send your prompts and cloud sign-in to a host. Programs built on Claude Code can tell an organization sign-in apart from a missing credential and avoid offering a sign-in that would replace it. If you use several accounts, they no longer share one trusted-device record.\n\n- Area: SDK\n- Names: `login_replaces_organization_sign_in`, `authentication_failed`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: both\n- Heads-up: yes"}