@iblai/web-utils 1.10.6 → 1.10.8
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/auth/index.esm.js +4 -1
- package/dist/auth/index.esm.js.map +1 -1
- package/dist/auth/index.js +4 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/data-layer/src/features/core/constants.d.ts +4 -0
- package/dist/data-layer/src/features/core/custom-api-slice.d.ts +309 -1
- package/dist/data-layer/src/features/core/types.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1270,7 +1270,7 @@ async function redirectToAuthSpa(options) {
|
|
|
1270
1270
|
window.localStorage.setItem(redirectPathStorageKey, redirectPath);
|
|
1271
1271
|
}
|
|
1272
1272
|
const platform = platformKey !== null && platformKey !== void 0 ? platformKey : getPlatformKey(redirectPath);
|
|
1273
|
-
const redirectToUrl =
|
|
1273
|
+
const redirectToUrl = window.location.origin;
|
|
1274
1274
|
let authRedirectUrl = `${authUrl}/login?${queryParams.app}=${appName}`;
|
|
1275
1275
|
authRedirectUrl += `&${queryParams.redirectTo}=${redirectToUrl}`;
|
|
1276
1276
|
if (platform) {
|
|
@@ -1279,6 +1279,9 @@ async function redirectToAuthSpa(options) {
|
|
|
1279
1279
|
if (logout) {
|
|
1280
1280
|
authRedirectUrl += "&logout=1";
|
|
1281
1281
|
}
|
|
1282
|
+
if ((isNativeApp === null || isNativeApp === void 0 ? void 0 : isNativeApp()) && scheme) {
|
|
1283
|
+
authRedirectUrl += `&scheme=${scheme}`;
|
|
1284
|
+
}
|
|
1282
1285
|
// Small delay for any pending operations
|
|
1283
1286
|
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
1284
1287
|
if (isNativeApp === null || isNativeApp === void 0 ? void 0 : isNativeApp()) {
|