From e8ed449c15590a57d5517af637959583cfe9b8e9 Mon Sep 17 00:00:00 2001 From: ThaminduDilshan Date: Wed, 13 May 2026 16:24:11 +0530 Subject: [PATCH 1/2] Fix OAuth redirection handling in invite flow --- .../auth/AcceptInvite/v2/BaseAcceptInvite.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/react/src/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.tsx b/packages/react/src/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.tsx index 61402fe3..f32d45a7 100644 --- a/packages/react/src/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.tsx +++ b/packages/react/src/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.tsx @@ -634,6 +634,15 @@ const BaseAcceptInvite: FC = ({ await setChallengeToken(response.challengeToken ?? null); + if (response.type === 'REDIRECTION') { + const redirectURL: any = response.data?.redirectURL || (response as any)?.redirectURL; + + if (redirectURL && typeof window !== 'undefined') { + initiateOAuthRedirect(redirectURL); + return; + } + } + // Check for error (invalid token) if (response.flowStatus === 'ERROR') { setIsTokenInvalid(true); From ad7a9f1abbd3abe08f61f23832d70a42370a88e9 Mon Sep 17 00:00:00 2001 From: ThaminduDilshan Date: Wed, 13 May 2026 16:36:03 +0530 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20add=20changeset=20=F0=9F=A6=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/three-flowers-sneeze.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/three-flowers-sneeze.md diff --git a/.changeset/three-flowers-sneeze.md b/.changeset/three-flowers-sneeze.md new file mode 100644 index 00000000..24697217 --- /dev/null +++ b/.changeset/three-flowers-sneeze.md @@ -0,0 +1,5 @@ +--- +'@asgardeo/react': patch +--- + +Fix OAuth redirection handling in invite flow