@insforge/react 0.3.4 → 0.3.5
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/components.js +3 -3
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +3 -3
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1715,7 +1715,7 @@ function SignUp({
|
|
|
1715
1715
|
if ("error" in result) {
|
|
1716
1716
|
throw new Error(result.error);
|
|
1717
1717
|
}
|
|
1718
|
-
if (result.
|
|
1718
|
+
if (result.requireEmailVerification && !result.accessToken) {
|
|
1719
1719
|
setStep("awaiting-verification");
|
|
1720
1720
|
setLoading(false);
|
|
1721
1721
|
return;
|
|
@@ -2213,12 +2213,12 @@ function ForgotPassword({
|
|
|
2213
2213
|
setError("");
|
|
2214
2214
|
setVerificationCode(code);
|
|
2215
2215
|
try {
|
|
2216
|
-
const result = await insforge.auth.
|
|
2216
|
+
const result = await insforge.auth.exchangeResetPasswordToken({ email, code });
|
|
2217
2217
|
if (result.error) {
|
|
2218
2218
|
throw new Error(result.error.message || "Failed to verify code");
|
|
2219
2219
|
}
|
|
2220
2220
|
if (result.data) {
|
|
2221
|
-
setResetToken(result.data.
|
|
2221
|
+
setResetToken(result.data.token);
|
|
2222
2222
|
setStep("password");
|
|
2223
2223
|
}
|
|
2224
2224
|
} catch (err) {
|