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 a12e34f9c8
commit 42b7b24a1d
5 changed files with 56 additions and 65 deletions
@@ -61,8 +61,7 @@ export async function validateNonInteractiveAuth(
}
}
await nonInteractiveConfig.refreshAuth(authType);
return nonInteractiveConfig;
return authType;
} catch (error) {
if (nonInteractiveConfig.getOutputFormat() === OutputFormat.JSON) {
handleError(