@keystrokehq/cli 0.0.102 → 0.0.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11278,8 +11278,6 @@ async function syncActiveOrganizationAfterLogin(config, options = {}) {
|
|
|
11278
11278
|
process.stdout.write(`Using organization ${membership.organization.name}\n`);
|
|
11279
11279
|
return membership;
|
|
11280
11280
|
}
|
|
11281
|
-
const webUrl = getWebUrl(config).replace(/\/+$/, "");
|
|
11282
|
-
options.openUrl?.(`${webUrl}/organization/selection?from=cli`);
|
|
11283
11281
|
const membership = await pickOrganization(config, organizations);
|
|
11284
11282
|
process.stdout.write(`Using organization ${membership.organization.name}\n`);
|
|
11285
11283
|
return membership;
|
|
@@ -13451,10 +13449,7 @@ function registerAuthLoginCommand(auth) {
|
|
|
13451
13449
|
const user = await getSessionWithBearer(webUrl, result.accessToken);
|
|
13452
13450
|
if (user) process.stdout.write(`Logged in as ${user.name} (${user.email})\n`);
|
|
13453
13451
|
else process.stdout.write(`Logged in to ${webUrl}\n`);
|
|
13454
|
-
await syncActiveOrganizationAfterLogin(config, {
|
|
13455
|
-
organizationId: options.org,
|
|
13456
|
-
openUrl
|
|
13457
|
-
});
|
|
13452
|
+
await syncActiveOrganizationAfterLogin(config, { organizationId: options.org });
|
|
13458
13453
|
} catch (error) {
|
|
13459
13454
|
process.stderr.write(`${formatCliError(error, "Login failed", { webUrl })}\n`);
|
|
13460
13455
|
process.exitCode = 1;
|