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