@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.js CHANGED
@@ -3830,7 +3830,7 @@ function createClient(opts) {
3830
3830
  if (typeof window === "undefined") return;
3831
3831
  const loc = redirect || window.location.href;
3832
3832
  try {
3833
- const root = env3.baseUrl;
3833
+ const root = env3.AUTH_ROOT_VALUE;
3834
3834
  const authUrl = new URL("/auth", String(root));
3835
3835
  authUrl.searchParams.set("redirect_uri", String(loc));
3836
3836
  if (opts?.projectId) authUrl.searchParams.set("project_id", String(opts.projectId));
@@ -3838,7 +3838,7 @@ function createClient(opts) {
3838
3838
  } catch {
3839
3839
  const encoded = encodeURIComponent(String(loc));
3840
3840
  const pid = opts?.projectId ? `&project_id=${encodeURIComponent(String(opts.projectId))}` : "";
3841
- const root = env3.baseUrl;
3841
+ const root = env3.AUTH_ROOT_VALUE;
3842
3842
  window.location.href = `${root}/auth?redirect_uri=${encoded}${pid}`;
3843
3843
  }
3844
3844
  },