fix(cli): allow keychain auth for --list-sessions and non-interactive mode (#26921)

This commit is contained in:
Coco Sheng
2026-05-13 13:35:21 -04:00
committed by GitHub
parent 297d3a3067
commit 1e7063bb0b
12 changed files with 148 additions and 43 deletions
@@ -42,7 +42,7 @@ export async function validateNonInteractiveAuth(
const authType: AuthType = effectiveAuthType;
if (!useExternalAuth) {
const err = validateAuthMethod(String(authType));
const err = await validateAuthMethod(String(authType));
if (err != null) {
throw new Error(err);
}