docs: describe the credentials path for every OS in the local credentials reader

This commit is contained in:
tiennm99 committed 2026-10-21 17:45:00 +07:00
1 parent 9a9b01ff07
commit fdf30ac005
1 file changed
+4 -4
+4 -4
View File
@@ -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": <ms-since-epoch> } }`.
// Path: `~/.claude/.credentials.json`, `%USERPROFILE%\.claude\.credentials.json`
// on Windows (matches what the official Claude CLI writes). Schema:
// `{ "claudeAiOauth": { "accessToken", "expiresAt": <ms-since-epoch> } }`.
use std::path::PathBuf;
use std::time::UNIX_EPOCH;