@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.js CHANGED
@@ -1575,7 +1575,7 @@ async function installDependencies(projectPath, packageManager = "npm") {
1575
1575
  var AUTH_DIR = path8__default.default.join(os__default.default.homedir(), ".onexthm");
1576
1576
  var AUTH_FILE = path8__default.default.join(AUTH_DIR, "auth.json");
1577
1577
  function getApiUrl() {
1578
- return process.env.ONEXTHM_API_URL || process.env.NEXT_PUBLIC_API_URL || "https://platform-dev.onexeos.com";
1578
+ return process.env.ONEXTHM_API_URL || "https://platform-dev.onexeos.com";
1579
1579
  }
1580
1580
  async function saveAuthTokens(tokens) {
1581
1581
  await fs__default.default.ensureDir(AUTH_DIR);
@@ -1602,7 +1602,7 @@ async function clearAuthTokens() {
1602
1602
  }
1603
1603
  }
1604
1604
  function isTokenExpired(tokens) {
1605
- return Date.now() / 1e3 > tokens.expiresAt - 60;
1605
+ return Date.now() / 1e3 > tokens.expiresAt - 300;
1606
1606
  }
1607
1607
  async function getValidTokens() {
1608
1608
  const tokens = loadAuthTokens();