Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Insert old code as comment

x032205e2680d9aeef3
diff --git a/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx b/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx
index f9dd81f5d0..39eb8d686a 100644
--- a/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx
+++ b/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx
@@ -244,6 +244,30 @@ export const SignupInvitePage = () => {
setStep(2);
} else {
navigate({ to: "/login" });
+
+ // TODO: Redirect user to the newly joined org. The commented code does not work due to auth issues.
+ // const redirectExistingUser = async () => {
+ // try {
+ // const { token: mfaToken, isMfaEnabled } = await selectOrganization({
+ // organizationId
+ // });
+
+ // if (isMfaEnabled) {
+ // SecurityClient.setMfaToken(mfaToken);
+ // toggleShowMfa.on();
+ // setMfaSuccessCallback(() => redirectExistingUser);
+ // return;
+ // }
+
+ // // user will be redirected to dashboard
+ // // if not logged in gets kicked out to login
+ // await navigateUserToOrg(navigate, organizationId);
+ // } catch (err) {
+ // navigate({ to: "/login" });
+ // }
+ // };
+
+ // await redirectExistingUser();
}
}
} catch (err) {