refactor(auth): Refactor non-interactive mode auth validation & refresh (#15679)

This commit is contained in:
Shreya Keshive
2025-12-30 11:09:00 -05:00
committed by GitHub
parent fb22f5b8ee
commit 1e08b150f7
5 changed files with 56 additions and 65 deletions

View File

@@ -61,8 +61,7 @@ export async function validateNonInteractiveAuth(
}
}
await nonInteractiveConfig.refreshAuth(authType);
return nonInteractiveConfig;
return authType;
} catch (error) {
if (nonInteractiveConfig.getOutputFormat() === OutputFormat.JSON) {
handleError(