@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.js
CHANGED
|
@@ -1441,7 +1441,7 @@ var HowOneProvider = ({
|
|
|
1441
1441
|
if (activeProjectId) {
|
|
1442
1442
|
try {
|
|
1443
1443
|
const url = new URL(resolvedAuthUrl);
|
|
1444
|
-
url.searchParams.set("redirect_uri", window.location.
|
|
1444
|
+
url.searchParams.set("redirect_uri", window.location.origin);
|
|
1445
1445
|
url.searchParams.set("project_id", activeProjectId);
|
|
1446
1446
|
window.location.href = url.toString();
|
|
1447
1447
|
return;
|
|
@@ -1457,7 +1457,7 @@ var HowOneProvider = ({
|
|
|
1457
1457
|
if (currentUrl.pathname.includes("/auth")) return;
|
|
1458
1458
|
try {
|
|
1459
1459
|
const authUrlObj = new URL(resolvedAuthUrl);
|
|
1460
|
-
authUrlObj.searchParams.set("redirect_uri", window.location.
|
|
1460
|
+
authUrlObj.searchParams.set("redirect_uri", window.location.origin);
|
|
1461
1461
|
if (activeProjectId) {
|
|
1462
1462
|
authUrlObj.searchParams.set("project_id", activeProjectId);
|
|
1463
1463
|
}
|