@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/cjs/index.js
CHANGED
|
@@ -926,8 +926,7 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
|
|
|
926
926
|
const arg1 = args[0];
|
|
927
927
|
const arg2 = args[1];
|
|
928
928
|
const config = await this.asgardeo.getConfigData();
|
|
929
|
-
const
|
|
930
|
-
const isV2Platform = config && config.platform === import_browser6.Platform.AsgardeoV2 || platformFromStorage === "AsgardeoV2";
|
|
929
|
+
const isV2Platform = config && config.platform === import_browser6.Platform.AsgardeoV2;
|
|
931
930
|
if (isV2Platform && typeof arg1 === "object" && arg1 !== null && arg1.callOnlyOnRedirect === true) {
|
|
932
931
|
return void 0;
|
|
933
932
|
}
|
|
@@ -935,8 +934,7 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
|
|
|
935
934
|
const authIdFromUrl = new URL(window.location.href).searchParams.get("authId");
|
|
936
935
|
const authIdFromStorage = sessionStorage.getItem("asgardeo_auth_id");
|
|
937
936
|
const authId = authIdFromUrl || authIdFromStorage;
|
|
938
|
-
const
|
|
939
|
-
const baseUrl = config?.baseUrl || baseUrlFromStorage;
|
|
937
|
+
const baseUrl = config?.baseUrl;
|
|
940
938
|
const response = await (0, import_browser6.executeEmbeddedSignInFlowV2)({
|
|
941
939
|
authId,
|
|
942
940
|
baseUrl,
|
|
@@ -2166,12 +2164,6 @@ var AsgardeoProvider = ({
|
|
|
2166
2164
|
await asgardeo.initialize(config);
|
|
2167
2165
|
const initializedConfig = await asgardeo.getConfiguration();
|
|
2168
2166
|
setConfig(initializedConfig);
|
|
2169
|
-
if (initializedConfig?.platform) {
|
|
2170
|
-
sessionStorage.setItem("asgardeo_platform", initializedConfig.platform);
|
|
2171
|
-
}
|
|
2172
|
-
if (initializedConfig?.baseUrl) {
|
|
2173
|
-
sessionStorage.setItem("asgardeo_base_url", initializedConfig.baseUrl);
|
|
2174
|
-
}
|
|
2175
2167
|
})();
|
|
2176
2168
|
}, []);
|
|
2177
2169
|
async function updateSession() {
|
|
@@ -2486,7 +2478,7 @@ var AsgardeoProvider = ({
|
|
|
2486
2478
|
const value = (0, import_react20.useMemo)(
|
|
2487
2479
|
() => ({
|
|
2488
2480
|
afterSignInUrl,
|
|
2489
|
-
applicationId,
|
|
2481
|
+
applicationId: config.applicationId,
|
|
2490
2482
|
baseUrl,
|
|
2491
2483
|
clearSession,
|
|
2492
2484
|
clientId,
|