@asgardeo/react 0.20.0 → 0.21.0

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/index.js CHANGED
@@ -283,7 +283,7 @@ var _AuthAPI = class _AuthAPI {
283
283
  /**
284
284
  * This methods returns the Axios http client.
285
285
  *
286
- * @return {HttpClientInstance} - The Axios HTTP client.
286
+ * @return {HttpClient} - The Axios HTTP client.
287
287
  */
288
288
  async getHttpClient() {
289
289
  return this.client.getHttpClient();
@@ -616,7 +616,11 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
616
616
  resolvedOrganizationHandle = deriveOrganizationHandleFromBaseUrl(config?.baseUrl);
617
617
  }
618
618
  return this.withLoading(async () => {
619
- this.initializeConfig = { ...config, organizationHandle: resolvedOrganizationHandle };
619
+ this.initializeConfig = {
620
+ ...config,
621
+ organizationHandle: resolvedOrganizationHandle,
622
+ periodicTokenRefresh: config?.tokenLifecycle?.refreshToken?.autoRefresh ?? config?.periodicTokenRefresh
623
+ };
620
624
  return this.asgardeo.init(this.initializeConfig);
621
625
  });
622
626
  }