@asgardeo/react 0.24.1 → 0.25.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/cjs/index.js
CHANGED
|
@@ -2467,7 +2467,7 @@ var AsgardeoProvider = ({
|
|
|
2467
2467
|
if (config.platform === import_browser16.Platform.AsgardeoV2) {
|
|
2468
2468
|
return;
|
|
2469
2469
|
}
|
|
2470
|
-
const shouldFetchBranding = preferences?.theme?.inheritFromBranding
|
|
2470
|
+
const shouldFetchBranding = preferences?.theme?.inheritFromBranding === true;
|
|
2471
2471
|
if (shouldFetchBranding && isInitializedSync && baseUrl && !hasFetchedBranding && !isBrandingLoading) {
|
|
2472
2472
|
fetchBranding();
|
|
2473
2473
|
}
|
|
@@ -2658,7 +2658,7 @@ var AsgardeoProvider = ({
|
|
|
2658
2658
|
brandingPreference,
|
|
2659
2659
|
isLoading: isBrandingLoading,
|
|
2660
2660
|
error: brandingError,
|
|
2661
|
-
enabled: preferences?.theme?.inheritFromBranding
|
|
2661
|
+
enabled: preferences?.theme?.inheritFromBranding === true,
|
|
2662
2662
|
refetch: refetchBranding,
|
|
2663
2663
|
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2664
2664
|
ThemeProvider_default3,
|
|
@@ -13906,7 +13906,9 @@ var BaseAcceptInvite = ({
|
|
|
13906
13906
|
onComplete?.();
|
|
13907
13907
|
},
|
|
13908
13908
|
onError: (error) => {
|
|
13909
|
-
|
|
13909
|
+
if (!error?.flowStatus) {
|
|
13910
|
+
setIsTokenInvalid(true);
|
|
13911
|
+
}
|
|
13910
13912
|
setIsValidatingToken(false);
|
|
13911
13913
|
handleError(error);
|
|
13912
13914
|
},
|