@howone/sdk 0.3.9 → 0.3.10

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
@@ -206,7 +206,7 @@ function useAuth() {
206
206
  const loc = window.location.href;
207
207
  const pid = getDefaultProjectId();
208
208
  try {
209
- const root = env2.baseUrl;
209
+ const root = env2.AUTH_ROOT_VALUE;
210
210
  const authUrl = new URL("/auth", String(root));
211
211
  authUrl.searchParams.set("redirect_uri", String(loc));
212
212
  if (pid) authUrl.searchParams.set("project_id", String(pid));
@@ -3544,7 +3544,7 @@ function createClient(opts) {
3544
3544
  if (typeof window !== "undefined") {
3545
3545
  const loc = window.location.href;
3546
3546
  try {
3547
- const root = env3.baseUrl;
3547
+ const root = env3.AUTH_ROOT_VALUE;
3548
3548
  const authUrl = new URL("/auth", String(root));
3549
3549
  authUrl.searchParams.set("redirect_uri", String(loc));
3550
3550
  if (opts?.projectId) authUrl.searchParams.set("project_id", String(opts.projectId));