@asgardeo/react 0.15.3 → 0.15.4
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/cjs/index.js +3 -11
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +3 -11
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -796,8 +796,7 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
|
|
|
796
796
|
const arg1 = args[0];
|
|
797
797
|
const arg2 = args[1];
|
|
798
798
|
const config = await this.asgardeo.getConfigData();
|
|
799
|
-
const
|
|
800
|
-
const isV2Platform = config && config.platform === Platform.AsgardeoV2 || platformFromStorage === "AsgardeoV2";
|
|
799
|
+
const isV2Platform = config && config.platform === Platform.AsgardeoV2;
|
|
801
800
|
if (isV2Platform && typeof arg1 === "object" && arg1 !== null && arg1.callOnlyOnRedirect === true) {
|
|
802
801
|
return void 0;
|
|
803
802
|
}
|
|
@@ -805,8 +804,7 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
|
|
|
805
804
|
const authIdFromUrl = new URL(window.location.href).searchParams.get("authId");
|
|
806
805
|
const authIdFromStorage = sessionStorage.getItem("asgardeo_auth_id");
|
|
807
806
|
const authId = authIdFromUrl || authIdFromStorage;
|
|
808
|
-
const
|
|
809
|
-
const baseUrl = config?.baseUrl || baseUrlFromStorage;
|
|
807
|
+
const baseUrl = config?.baseUrl;
|
|
810
808
|
const response = await executeEmbeddedSignInFlowV2({
|
|
811
809
|
authId,
|
|
812
810
|
baseUrl,
|
|
@@ -2051,12 +2049,6 @@ var AsgardeoProvider = ({
|
|
|
2051
2049
|
await asgardeo.initialize(config);
|
|
2052
2050
|
const initializedConfig = await asgardeo.getConfiguration();
|
|
2053
2051
|
setConfig(initializedConfig);
|
|
2054
|
-
if (initializedConfig?.platform) {
|
|
2055
|
-
sessionStorage.setItem("asgardeo_platform", initializedConfig.platform);
|
|
2056
|
-
}
|
|
2057
|
-
if (initializedConfig?.baseUrl) {
|
|
2058
|
-
sessionStorage.setItem("asgardeo_base_url", initializedConfig.baseUrl);
|
|
2059
|
-
}
|
|
2060
2052
|
})();
|
|
2061
2053
|
}, []);
|
|
2062
2054
|
async function updateSession() {
|
|
@@ -2371,7 +2363,7 @@ var AsgardeoProvider = ({
|
|
|
2371
2363
|
const value = useMemo7(
|
|
2372
2364
|
() => ({
|
|
2373
2365
|
afterSignInUrl,
|
|
2374
|
-
applicationId,
|
|
2366
|
+
applicationId: config.applicationId,
|
|
2375
2367
|
baseUrl,
|
|
2376
2368
|
clearSession,
|
|
2377
2369
|
clientId,
|