@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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -216,7 +216,7 @@ function useAuth() {
|
|
|
216
216
|
const loc = window.location.href;
|
|
217
217
|
const pid = getDefaultProjectId();
|
|
218
218
|
try {
|
|
219
|
-
const root = env2.
|
|
219
|
+
const root = env2.AUTH_ROOT_VALUE;
|
|
220
220
|
const authUrl = new URL("/auth", String(root));
|
|
221
221
|
authUrl.searchParams.set("redirect_uri", String(loc));
|
|
222
222
|
if (pid) authUrl.searchParams.set("project_id", String(pid));
|
|
@@ -3614,7 +3614,7 @@ function createClient(opts) {
|
|
|
3614
3614
|
if (typeof window !== "undefined") {
|
|
3615
3615
|
const loc = window.location.href;
|
|
3616
3616
|
try {
|
|
3617
|
-
const root = env3.
|
|
3617
|
+
const root = env3.AUTH_ROOT_VALUE;
|
|
3618
3618
|
const authUrl = new URL("/auth", String(root));
|
|
3619
3619
|
authUrl.searchParams.set("redirect_uri", String(loc));
|
|
3620
3620
|
if (opts?.projectId) authUrl.searchParams.set("project_id", String(opts.projectId));
|