mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-03 11:05:35 +08:00
Compare commits
1 Commits
v1.33.0
...
fix/claude
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a87214050b |
@@ -83,6 +83,10 @@ export class ClaudeProviderAuth implements IProviderAuth {
|
|||||||
private async checkCredentials(): Promise<ClaudeCredentialsStatus> {
|
private async checkCredentials(): Promise<ClaudeCredentialsStatus> {
|
||||||
const missingCredentialsError = 'Claude CLI is not authenticated. Run claude /login or configure ANTHROPIC_API_KEY.';
|
const missingCredentialsError = 'Claude CLI is not authenticated. Run claude /login or configure ANTHROPIC_API_KEY.';
|
||||||
|
|
||||||
|
if (process.env.ANTHROPIC_AUTH_TOKEN?.trim()) {
|
||||||
|
return { authenticated: true, email: 'Auth Token', method: 'api_key' };
|
||||||
|
}
|
||||||
|
|
||||||
if (process.env.ANTHROPIC_API_KEY?.trim()) {
|
if (process.env.ANTHROPIC_API_KEY?.trim()) {
|
||||||
return { authenticated: true, email: 'API Key Auth', method: 'api_key' };
|
return { authenticated: true, email: 'API Key Auth', method: 'api_key' };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user