@asgardeo/react 0.5.29 → 0.5.30

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 CHANGED
@@ -855,7 +855,7 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
855
855
  const arg1 = args[0];
856
856
  const arg2 = args[1];
857
857
  const config = await this.asgardeo.getConfigData();
858
- if (config.platform === import_browser6.Platform.AsgardeoV2) {
858
+ if (config.platform === import_browser6.Platform.AsgardeoV2 && typeof arg1 === "object" && !(0, import_browser6.isEmpty)(arg1)) {
859
859
  const sessionDataKey = new URL(window.location.href).searchParams.get("sessionDataKey");
860
860
  return (0, import_browser6.executeEmbeddedSignInFlowV2)({
861
861
  payload: arg1,
@@ -1750,7 +1750,7 @@ var AsgardeoProvider = ({
1750
1750
  await fetchBranding();
1751
1751
  }, [fetchBranding]);
1752
1752
  (0, import_react15.useEffect)(() => {
1753
- if (config.platform !== import_browser12.Platform.AsgardeoV2) {
1753
+ if (config.platform === import_browser12.Platform.AsgardeoV2) {
1754
1754
  return;
1755
1755
  }
1756
1756
  const shouldFetchBranding = preferences?.theme?.inheritFromBranding !== false;