mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
Update app/electron/services/claude-cli-detector.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -251,7 +251,11 @@ class ClaudeCliDetector {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Priority: Env OAuth Token > Stored OAuth Token > Stored API Key > Env API Key
|
// Authentication priority (highest to lowest):
|
||||||
|
// 1. Environment OAuth Token (CLAUDE_CODE_OAUTH_TOKEN)
|
||||||
|
// 2. Stored OAuth Token (from credentials file)
|
||||||
|
// 3. Stored API Key (from credentials file)
|
||||||
|
// 4. Environment API Key (ANTHROPIC_API_KEY)
|
||||||
let authenticated = false;
|
let authenticated = false;
|
||||||
let method = "none";
|
let method = "none";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user