@asgardeo/react 0.5.30 → 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/index.d.ts CHANGED
@@ -193,4 +193,4 @@ export { default as getSchemas, GetSchemasConfig } from './api/getSchemas';
193
193
  export { default as updateMeProfile, UpdateMeProfileConfig } from './api/updateMeProfile';
194
194
  export { default as getMeProfile } from './api/getScim2Me';
195
195
  export * from './api/getScim2Me';
196
- export { AsgardeoRuntimeError, http, getActiveTheme } from '@asgardeo/browser';
196
+ export { AsgardeoRuntimeError, http, getActiveTheme, navigate } from '@asgardeo/browser';
package/dist/index.js CHANGED
@@ -741,7 +741,7 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
741
741
  const arg1 = args[0];
742
742
  const arg2 = args[1];
743
743
  const config = await this.asgardeo.getConfigData();
744
- if (config.platform === Platform.AsgardeoV2 && typeof arg1 === "object" && !isEmpty(arg1)) {
744
+ if (config.platform === Platform.AsgardeoV2 && typeof arg1 === "object" && !isEmpty(arg1) && ("flowId" in arg1 || "applicationId" in arg1)) {
745
745
  const sessionDataKey = new URL(window.location.href).searchParams.get("sessionDataKey");
746
746
  return executeEmbeddedSignInFlowV2({
747
747
  payload: arg1,
@@ -1580,7 +1580,7 @@ var AsgardeoProvider = ({
1580
1580
  _baseUrl2 = `${(await asgardeo.getConfiguration()).baseUrl}/o`;
1581
1581
  setBaseUrl(_baseUrl2);
1582
1582
  }
1583
- if (config.platform !== Platform2.AsgardeoV2) {
1583
+ if (config.platform === Platform2.AsgardeoV2) {
1584
1584
  setUser(extractUserClaimsFromIdToken2(decodedToken));
1585
1585
  } else {
1586
1586
  try {
@@ -13183,7 +13183,7 @@ var OrganizationSwitcher = ({
13183
13183
  var OrganizationSwitcher_default = OrganizationSwitcher;
13184
13184
 
13185
13185
  // src/index.ts
13186
- import { AsgardeoRuntimeError as AsgardeoRuntimeError9, http, getActiveTheme as getActiveTheme2 } from "@asgardeo/browser";
13186
+ import { AsgardeoRuntimeError as AsgardeoRuntimeError9, http, getActiveTheme as getActiveTheme2, navigate as navigate4 } from "@asgardeo/browser";
13187
13187
  export {
13188
13188
  Alert_default as Alert,
13189
13189
  AlertDescription,
@@ -13289,6 +13289,7 @@ export {
13289
13289
  getOrganization_default as getOrganization,
13290
13290
  getSchemas_default as getSchemas,
13291
13291
  http,
13292
+ navigate4 as navigate,
13292
13293
  updateMeProfile_default as updateMeProfile,
13293
13294
  updateOrganization_default as updateOrganization,
13294
13295
  useAlertVariant,