From fdf30ac005b26972ead8cd058d5a052e904eb969 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Wed, 21 Oct 2026 17:45:00 +0700 Subject: [PATCH] docs: describe the credentials path for every OS in the local credentials reader --- src/creds/local_fs.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/creds/local_fs.rs b/src/creds/local_fs.rs index 3d5f081..19d297f 100644 --- a/src/creds/local_fs.rs +++ b/src/creds/local_fs.rs @@ -1,8 +1,8 @@ -// Read Claude credentials from the Windows user profile. +// Read Claude credentials from the user's home directory. // -// Path: `%USERPROFILE%\.claude\.credentials.json` (matches what the -// official Claude CLI writes). Schema: `{ "claudeAiOauth": { "accessToken", -// "expiresAt": } }`. +// Path: `~/.claude/.credentials.json`, `%USERPROFILE%\.claude\.credentials.json` +// on Windows (matches what the official Claude CLI writes). Schema: +// `{ "claudeAiOauth": { "accessToken", "expiresAt": } }`. use std::path::PathBuf; use std::time::UNIX_EPOCH;