mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-30 16:35:34 +08:00
refactor(providers): remove debug logging from Claude authentication status checks
This commit is contained in:
@@ -33,7 +33,6 @@ export class ClaudeProviderAuth implements IProviderAuth {
|
|||||||
* Returns Claude installation and credential status using Claude Code's auth priority.
|
* Returns Claude installation and credential status using Claude Code's auth priority.
|
||||||
*/
|
*/
|
||||||
async getStatus(): Promise<ProviderAuthStatus> {
|
async getStatus(): Promise<ProviderAuthStatus> {
|
||||||
console.log("Checking Claude authentication status...")
|
|
||||||
const installed = this.checkInstalled();
|
const installed = this.checkInstalled();
|
||||||
|
|
||||||
if (!installed) {
|
if (!installed) {
|
||||||
@@ -49,7 +48,6 @@ export class ClaudeProviderAuth implements IProviderAuth {
|
|||||||
|
|
||||||
const credentials = await this.checkCredentials();
|
const credentials = await this.checkCredentials();
|
||||||
|
|
||||||
console.log("Credientials status for Claude:", credentials)
|
|
||||||
return {
|
return {
|
||||||
installed,
|
installed,
|
||||||
provider: 'claude',
|
provider: 'claude',
|
||||||
@@ -68,7 +66,6 @@ export class ClaudeProviderAuth implements IProviderAuth {
|
|||||||
const settingsPath = path.join(os.homedir(), '.claude', 'settings.json');
|
const settingsPath = path.join(os.homedir(), '.claude', 'settings.json');
|
||||||
const content = await readFile(settingsPath, 'utf8');
|
const content = await readFile(settingsPath, 'utf8');
|
||||||
const settings = readObjectRecord(JSON.parse(content));
|
const settings = readObjectRecord(JSON.parse(content));
|
||||||
console.log("Settings env for Claude:", settings)
|
|
||||||
return readObjectRecord(settings?.env) ?? {};
|
return readObjectRecord(settings?.env) ?? {};
|
||||||
} catch {
|
} catch {
|
||||||
return {};
|
return {};
|
||||||
|
|||||||
Reference in New Issue
Block a user