@trycadence/cli 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/cadence +3 -3
  2. package/package.json +1 -1
package/dist/cadence CHANGED
@@ -2189,12 +2189,12 @@ async function readFreshAccessToken(config, store, authClient) {
2189
2189
  await releaseCredentialRefreshLock(lock);
2190
2190
  }
2191
2191
  }
2192
- async function createClient(config, options) {
2192
+ async function createClient(config, options, useStoredCredential = true) {
2193
2193
  if (options.client) {
2194
2194
  return options.client;
2195
2195
  }
2196
2196
  const store = getCredentialStore(options);
2197
- const credential = await readStoredCredential(store, config.server);
2197
+ const credential = useStoredCredential ? await readStoredCredential(store, config.server) : null;
2198
2198
  const authClient = createCadenceClient({
2199
2199
  baseUrl: config.server,
2200
2200
  ...options.fetch ? { fetch: options.fetch } : {}
@@ -2527,7 +2527,7 @@ async function runAuthCommand(parsed, options) {
2527
2527
  switch (parsed.command.name) {
2528
2528
  case "auth.login":
2529
2529
  {
2530
- const client = await createClient(config, options);
2530
+ const client = await createClient(config, options, false);
2531
2531
  const challenge = await client.auth.cli.start({
2532
2532
  loginBaseUrl: getCliWebBaseUrl(config, parsed, options)
2533
2533
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycadence/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {