@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/components.mjs
CHANGED
|
@@ -1377,7 +1377,7 @@ function SignUp({
|
|
|
1377
1377
|
if ("error" in result) {
|
|
1378
1378
|
throw new Error(result.error);
|
|
1379
1379
|
}
|
|
1380
|
-
if (result.
|
|
1380
|
+
if (result.requireEmailVerification && !result.accessToken) {
|
|
1381
1381
|
setStep("awaiting-verification");
|
|
1382
1382
|
setLoading(false);
|
|
1383
1383
|
return;
|
|
@@ -1875,12 +1875,12 @@ function ForgotPassword({
|
|
|
1875
1875
|
setError("");
|
|
1876
1876
|
setVerificationCode(code);
|
|
1877
1877
|
try {
|
|
1878
|
-
const result = await insforge.auth.
|
|
1878
|
+
const result = await insforge.auth.exchangeResetPasswordToken({ email, code });
|
|
1879
1879
|
if (result.error) {
|
|
1880
1880
|
throw new Error(result.error.message || "Failed to verify code");
|
|
1881
1881
|
}
|
|
1882
1882
|
if (result.data) {
|
|
1883
|
-
setResetToken(result.data.
|
|
1883
|
+
setResetToken(result.data.token);
|
|
1884
1884
|
setStep("password");
|
|
1885
1885
|
}
|
|
1886
1886
|
} catch (err) {
|