scope360-core 0.0.17 → 0.0.18

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.
@@ -11487,11 +11487,12 @@ function Qi(n, e) {
11487
11487
  var pa = Qi(Fv, { path: "/" });
11488
11488
  class _n {
11489
11489
  static setItem(e, t, a = Date.now() + 31449600) {
11490
- pa.set(
11490
+ console.log(window.location, "window.location"), pa.set(
11491
11491
  e,
11492
11492
  t,
11493
11493
  {
11494
- domain: `${process.env.NODE_ENV ? "localhost" : ".scope360.io"}`,
11494
+ // localhost
11495
+ domain: ".scope360.io",
11495
11496
  expires: new Date(a * 1e3),
11496
11497
  secure: !0,
11497
11498
  sameSite: "strict"
@@ -13001,7 +13002,7 @@ as.interceptors.response.use(
13001
13002
  return Promise.reject(n);
13002
13003
  } catch {
13003
13004
  _n.removeItem("access_token"), _n.removeItem("refresh_token"), _n.removeItem("isOAuth");
13004
- const e = window.location.origin;
13005
+ const e = window.location.href;
13005
13006
  return window.open(`https://scope360.io/login?redirectUrl=${e}`, "_self"), Promise.reject(n);
13006
13007
  }
13007
13008
  }