@onexapis/cli 1.1.55 → 1.1.59

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 CHANGED
@@ -1539,7 +1539,7 @@ async function installDependencies(projectPath, packageManager = "npm") {
1539
1539
  var AUTH_DIR = path8.join(os.homedir(), ".onexthm");
1540
1540
  var AUTH_FILE = path8.join(AUTH_DIR, "auth.json");
1541
1541
  function getApiUrl() {
1542
- return process.env.ONEXTHM_API_URL || process.env.NEXT_PUBLIC_API_URL || "https://platform-dev.onexeos.com";
1542
+ return process.env.ONEXTHM_API_URL || "https://platform-dev.onexeos.com";
1543
1543
  }
1544
1544
  async function saveAuthTokens(tokens) {
1545
1545
  await fs.ensureDir(AUTH_DIR);
@@ -1566,7 +1566,7 @@ async function clearAuthTokens() {
1566
1566
  }
1567
1567
  }
1568
1568
  function isTokenExpired(tokens) {
1569
- return Date.now() / 1e3 > tokens.expiresAt - 60;
1569
+ return Date.now() / 1e3 > tokens.expiresAt - 300;
1570
1570
  }
1571
1571
  async function getValidTokens() {
1572
1572
  const tokens = loadAuthTokens();