fix: resolve MiniMax portal usage auth

This commit is contained in:
Peter Steinberger
2026-04-04 12:40:20 +01:00
parent 9d684e1040
commit fb0d60d7f3
9 changed files with 65 additions and 17 deletions

View File

@@ -474,7 +474,8 @@ export type ProviderPreparedRuntimeAuth = {
* The helper methods cover the common OpenClaw auth resolution paths:
*
* - `resolveApiKeyFromConfigAndStore`: env/config/plain token/api_key profiles
* - `resolveOAuthToken`: oauth/token profiles resolved through the auth store
* - `resolveOAuthToken`: oauth/token profiles resolved through the auth store,
* optionally for an explicit provider override
*
* Plugins can still do extra provider-specific work on top (for example parse a
* token blob, read a legacy credential file, or pick between aliases).
@@ -489,7 +490,7 @@ export type ProviderResolveUsageAuthContext = {
providerIds?: string[];
envDirect?: Array<string | undefined>;
}) => string | undefined;
resolveOAuthToken: () => Promise<ProviderResolvedUsageAuth | null>;
resolveOAuthToken: (params?: { provider?: string }) => Promise<ProviderResolvedUsageAuth | null>;
};
/**