fix(ai): preserve env api key contract

This commit is contained in:
Armin Ronacher
2026-04-23 22:11:28 +02:00
parent f0cf8a59d2
commit 00cb947166
2 changed files with 21 additions and 26 deletions

View File

@@ -9,7 +9,6 @@
import {
findEnvKeys,
getEnvApiKey,
hasEnvAuth,
type OAuthCredentials,
type OAuthLoginCallbacks,
type OAuthProviderId,
@@ -332,7 +331,7 @@ export class AuthStorage {
hasAuth(provider: string): boolean {
if (this.runtimeOverrides.has(provider)) return true;
if (this.data[provider]) return true;
if (hasEnvAuth(provider)) return true;
if (getEnvApiKey(provider)) return true;
if (this.fallbackResolver?.(provider)) return true;
return false;
}