fix: removed unefficient AI generated call pattern using one-use object types created for 2-3 variable passing.
Some checks failed
build / build (push) Failing after 13s
Some checks failed
build / build (push) Failing after 13s
This commit is contained in:
@@ -18,13 +18,13 @@ Options:
|
||||
|
||||
export async function runLoginCommand(values: CommandValues): Promise<unknown> {
|
||||
const config = await loadConfig("public-config");
|
||||
return login({
|
||||
tenantId: config.tenantId,
|
||||
clientId: config.clientId,
|
||||
resourcesCsv: values.resources,
|
||||
useDeviceCode: Boolean(values["use-device-code"]),
|
||||
noBrowser: Boolean(values["no-browser"]),
|
||||
browser: values.browser,
|
||||
browserProfile: values["browser-profile"],
|
||||
});
|
||||
return login(
|
||||
config.tenantId,
|
||||
config.clientId,
|
||||
values.resources,
|
||||
Boolean(values["use-device-code"]),
|
||||
Boolean(values["no-browser"]),
|
||||
values.browser,
|
||||
values["browser-profile"],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user