@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/index.d.mts +140 -6
- package/dist/index.mjs +15 -3
- package/dist/index.mjs.map +1 -1
- package/dist/ui/index.mjs +5 -1
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/auth-client.ts +3 -3
- package/src/kv-client.ts +2 -2
- package/src/ui/components/auth/forms/sign-up-form.tsx +6 -1
package/dist/ui/index.mjs
CHANGED
|
@@ -12848,7 +12848,11 @@ function SignUpForm({
|
|
|
12848
12848
|
callbackURL: getCallbackURL(),
|
|
12849
12849
|
fetchOptions
|
|
12850
12850
|
});
|
|
12851
|
-
if (
|
|
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(
|