fix: support direct token and provider in auth apply commands (#1485)

This commit is contained in:
Ian Hildebrand
2026-01-23 01:27:52 -06:00
committed by GitHub
parent 60a60779d7
commit ff78e9a564
5 changed files with 140 additions and 34 deletions

View File

@@ -356,6 +356,10 @@ export async function runOnboardingWizard(
prompter,
runtime,
setDefaultModel: true,
opts: {
tokenProvider: opts.tokenProvider,
token: opts.authChoice === "apiKey" && opts.token ? opts.token : undefined,
},
});
nextConfig = authResult.config;