@howone/sdk 0.3.15 → 0.3.17

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
@@ -3758,7 +3758,7 @@ function createClient(opts) {
3758
3758
  if (typeof window === "undefined") return;
3759
3759
  const loc = redirect || window.location.href;
3760
3760
  try {
3761
- const root = env3.baseUrl;
3761
+ const root = env3.AUTH_ROOT_VALUE;
3762
3762
  const authUrl = new URL("/auth", String(root));
3763
3763
  authUrl.searchParams.set("redirect_uri", String(loc));
3764
3764
  if (opts?.projectId) authUrl.searchParams.set("project_id", String(opts.projectId));
@@ -3766,7 +3766,7 @@ function createClient(opts) {
3766
3766
  } catch {
3767
3767
  const encoded = encodeURIComponent(String(loc));
3768
3768
  const pid = opts?.projectId ? `&project_id=${encodeURIComponent(String(opts.projectId))}` : "";
3769
- const root = env3.baseUrl;
3769
+ const root = env3.AUTH_ROOT_VALUE;
3770
3770
  window.location.href = `${root}/auth?redirect_uri=${encoded}${pid}`;
3771
3771
  }
3772
3772
  },