@asgardeo/react 0.24.0 → 0.24.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
|
@@ -13912,7 +13912,13 @@ var BaseAcceptInvite = ({
|
|
|
13912
13912
|
},
|
|
13913
13913
|
onFlowChange: (response) => {
|
|
13914
13914
|
onFlowChange?.(response);
|
|
13915
|
-
if (response.flowStatus
|
|
13915
|
+
if (response.flowStatus === "COMPLETE") {
|
|
13916
|
+
setIsComplete(true);
|
|
13917
|
+
const completionComponents = response.data?.components || response.data?.meta?.components || [];
|
|
13918
|
+
if (completionComponents.length > 0) {
|
|
13919
|
+
setCurrentFlow(response);
|
|
13920
|
+
}
|
|
13921
|
+
} else {
|
|
13916
13922
|
setCurrentFlow(response);
|
|
13917
13923
|
setFormValues({});
|
|
13918
13924
|
setFormErrors({});
|
|
@@ -14045,6 +14051,10 @@ var BaseAcceptInvite = ({
|
|
|
14045
14051
|
if (tokenValidationAttemptedRef.current) {
|
|
14046
14052
|
return;
|
|
14047
14053
|
}
|
|
14054
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
14055
|
+
if (urlParams.get("code")) {
|
|
14056
|
+
return;
|
|
14057
|
+
}
|
|
14048
14058
|
if (!executionId || !inviteToken) {
|
|
14049
14059
|
setIsValidatingToken(false);
|
|
14050
14060
|
setIsTokenInvalid(true);
|