@asgardeo/react 0.25.1 → 0.25.2

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
@@ -14082,6 +14082,13 @@ var BaseAcceptInvite = ({
14082
14082
  const response = normalizeFlowResponseLocal(rawResponse);
14083
14083
  onFlowChange?.(response);
14084
14084
  await setChallengeToken(response.challengeToken ?? null);
14085
+ if (response.type === "REDIRECTION") {
14086
+ const redirectURL = response.data?.redirectURL || response?.redirectURL;
14087
+ if (redirectURL && typeof window !== "undefined") {
14088
+ initiateOAuthRedirect(redirectURL);
14089
+ return;
14090
+ }
14091
+ }
14085
14092
  if (response.flowStatus === "ERROR") {
14086
14093
  setIsTokenInvalid(true);
14087
14094
  handleError(response);