@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
|
@@ -27,6 +27,7 @@ declare class AsgardeoReactClient<T extends AsgardeoReactConfig = AsgardeoReactC
|
|
|
27
27
|
private asgardeo;
|
|
28
28
|
private loadingState;
|
|
29
29
|
private clientInstanceId;
|
|
30
|
+
private initializeConfig;
|
|
30
31
|
/**
|
|
31
32
|
* Creates a new AsgardeoReactClient instance.
|
|
32
33
|
* @param instanceId - Optional instance ID for multi-auth context support. Defaults to 0 for backward compatibility.
|
package/dist/cjs/index.js
CHANGED
|
@@ -706,6 +706,7 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
|
|
|
706
706
|
__publicField(this, "asgardeo");
|
|
707
707
|
__publicField(this, "loadingState", false);
|
|
708
708
|
__publicField(this, "clientInstanceId");
|
|
709
|
+
__publicField(this, "initializeConfig");
|
|
709
710
|
this.clientInstanceId = instanceId;
|
|
710
711
|
this.asgardeo = new api_default(void 0, instanceId);
|
|
711
712
|
}
|
|
@@ -927,6 +928,9 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
|
|
|
927
928
|
const arg1 = args[0];
|
|
928
929
|
const arg2 = args[1];
|
|
929
930
|
const config = await this.asgardeo.getConfigData();
|
|
931
|
+
if (!config || Object.keys(config).length === 0) {
|
|
932
|
+
await this.initialize(this.initializeConfig);
|
|
933
|
+
}
|
|
930
934
|
const isV2Platform = config && config.platform === import_browser6.Platform.AsgardeoV2;
|
|
931
935
|
if (isV2Platform && typeof arg1 === "object" && arg1 !== null && arg1.callOnlyOnRedirect === true) {
|
|
932
936
|
return void 0;
|