@howone/sdk 0.3.21 → 0.3.22
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.mjs
CHANGED
|
@@ -1370,7 +1370,7 @@ var HowOneProvider = ({
|
|
|
1370
1370
|
if (activeProjectId) {
|
|
1371
1371
|
try {
|
|
1372
1372
|
const url = new URL(resolvedAuthUrl);
|
|
1373
|
-
url.searchParams.set("redirect_uri", window.location.
|
|
1373
|
+
url.searchParams.set("redirect_uri", window.location.origin);
|
|
1374
1374
|
url.searchParams.set("project_id", activeProjectId);
|
|
1375
1375
|
window.location.href = url.toString();
|
|
1376
1376
|
return;
|
|
@@ -1386,7 +1386,7 @@ var HowOneProvider = ({
|
|
|
1386
1386
|
if (currentUrl.pathname.includes("/auth")) return;
|
|
1387
1387
|
try {
|
|
1388
1388
|
const authUrlObj = new URL(resolvedAuthUrl);
|
|
1389
|
-
authUrlObj.searchParams.set("redirect_uri", window.location.
|
|
1389
|
+
authUrlObj.searchParams.set("redirect_uri", window.location.origin);
|
|
1390
1390
|
if (activeProjectId) {
|
|
1391
1391
|
authUrlObj.searchParams.set("project_id", activeProjectId);
|
|
1392
1392
|
}
|