@asgardeo/react 0.5.29 → 0.5.31

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
@@ -135,6 +135,7 @@ __export(index_exports, {
135
135
  getOrganization: () => getOrganization_default,
136
136
  getSchemas: () => getSchemas_default,
137
137
  http: () => import_browser74.http,
138
+ navigate: () => import_browser74.navigate,
138
139
  updateMeProfile: () => updateMeProfile_default,
139
140
  updateOrganization: () => updateOrganization_default,
140
141
  useAlertVariant: () => useAlertVariant,
@@ -855,7 +856,7 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
855
856
  const arg1 = args[0];
856
857
  const arg2 = args[1];
857
858
  const config = await this.asgardeo.getConfigData();
858
- if (config.platform === import_browser6.Platform.AsgardeoV2) {
859
+ if (config.platform === import_browser6.Platform.AsgardeoV2 && typeof arg1 === "object" && !(0, import_browser6.isEmpty)(arg1) && ("flowId" in arg1 || "applicationId" in arg1)) {
859
860
  const sessionDataKey = new URL(window.location.href).searchParams.get("sessionDataKey");
860
861
  return (0, import_browser6.executeEmbeddedSignInFlowV2)({
861
862
  payload: arg1,
@@ -1686,7 +1687,7 @@ var AsgardeoProvider = ({
1686
1687
  _baseUrl2 = `${(await asgardeo.getConfiguration()).baseUrl}/o`;
1687
1688
  setBaseUrl(_baseUrl2);
1688
1689
  }
1689
- if (config.platform !== import_browser12.Platform.AsgardeoV2) {
1690
+ if (config.platform === import_browser12.Platform.AsgardeoV2) {
1690
1691
  setUser((0, import_browser12.extractUserClaimsFromIdToken)(decodedToken));
1691
1692
  } else {
1692
1693
  try {
@@ -1750,7 +1751,7 @@ var AsgardeoProvider = ({
1750
1751
  await fetchBranding();
1751
1752
  }, [fetchBranding]);
1752
1753
  (0, import_react15.useEffect)(() => {
1753
- if (config.platform !== import_browser12.Platform.AsgardeoV2) {
1754
+ if (config.platform === import_browser12.Platform.AsgardeoV2) {
1754
1755
  return;
1755
1756
  }
1756
1757
  const shouldFetchBranding = preferences?.theme?.inheritFromBranding !== false;