@asgardeo/react 0.16.0 → 0.16.1
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/AsgardeoReactClient.d.ts +1 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +4 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -575,6 +575,7 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
|
|
|
575
575
|
__publicField(this, "asgardeo");
|
|
576
576
|
__publicField(this, "loadingState", false);
|
|
577
577
|
__publicField(this, "clientInstanceId");
|
|
578
|
+
__publicField(this, "initializeConfig");
|
|
578
579
|
this.clientInstanceId = instanceId;
|
|
579
580
|
this.asgardeo = new api_default(void 0, instanceId);
|
|
580
581
|
}
|
|
@@ -796,6 +797,9 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
|
|
|
796
797
|
const arg1 = args[0];
|
|
797
798
|
const arg2 = args[1];
|
|
798
799
|
const config = await this.asgardeo.getConfigData();
|
|
800
|
+
if (!config || Object.keys(config).length === 0) {
|
|
801
|
+
await this.initialize(this.initializeConfig);
|
|
802
|
+
}
|
|
799
803
|
const isV2Platform = config && config.platform === Platform.AsgardeoV2;
|
|
800
804
|
if (isV2Platform && typeof arg1 === "object" && arg1 !== null && arg1.callOnlyOnRedirect === true) {
|
|
801
805
|
return void 0;
|