Skip to main content

identity_key_from_oauth_dir

Function identity_key_from_oauth_dir 

Source
pub fn identity_key_from_oauth_dir(provider: &str, dir: &str) -> Option<String>
Expand description

The Anthropic identity a Claude config dir is signed in as: a short hash of oauthAccount.accountUuid and oauthAccount.organizationUuid (SPEC_RESUME_GATE_AND_SAME_IDENTITY_CONTINUATION_2026_09_25.md §4.1). Not the email: one email can belong to several organizations, a personal one and a Team one, and a session from one isn’t the other’s. Hashed because it goes into a log every srv on the host shares. None on the same terms as email_from_oauth_dir, or when either id is missing.