mirror of
https://github.com/tiennm99/claude-code-usage-bubble.git
synced 2026-10-22 20:15:09 +00:00
docs: describe the credentials path for every OS in the local credentials reader
This commit is contained in:
1 parent
9a9b01ff07
commit
fdf30ac005
1 file changed
+4
-4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user