You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Treat orcid_in_use as the single ORCID-conflict code #305
nemar-cli #1254 (ADR 0043) makes an ORCID iD back at most one live NEMAR account, and returns a typed code on every refusal.
Two of those codes mean the same thing to a user:
orcid_in_use — the iD is already on a live account through users.orcid.
orcid_already_linked — the iD already has an oauth_identities row.
The only difference is which constraint noticed, which is not something a person can act on. Both carry the same message, which already points at Settings.
orcid_already_linked is kept for now purely because it is what POST /auth/orcid/finalize has always returned and the site switches on it today. It is marked DEPRECATED in shared/contract/identity.ts.
What to do here
Treat orcid_in_use and orcid_already_linked as the same case, keyed on orcid_in_use.
Confirm nothing else branches on orcid_already_linked.
Once that ships, nemar-cli can stop emitting orcid_already_linked from finalize and delete the alias from the contract.
Activity
neuromechanist commentedon Sep 6, 2026
Merged to staging in #308. nemar-cli can drop the orcid_already_linked alias once this reaches production.