@erikey/react 0.4.28 → 0.4.30

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/ui/index.mjs CHANGED
@@ -12848,7 +12848,11 @@ function SignUpForm({
12848
12848
  callbackURL: getCallbackURL(),
12849
12849
  fetchOptions
12850
12850
  });
12851
- if ("token" in data && data.token) {
12851
+ if (data.twoFactorRedirect) {
12852
+ navigate(
12853
+ `${basePath}/${viewPaths.TWO_FACTOR}${window.location.search}`
12854
+ );
12855
+ } else if ("token" in data && data.token) {
12852
12856
  await onSuccess();
12853
12857
  } else if (emailVerification?.otp) {
12854
12858
  navigate(