@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/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.requiresEmailVerification && !result.accessToken) {
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.verifyResetPasswordCode({ email, code });
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.resetToken);
2221
+ setResetToken(result.data.token);
2222
2222
  setStep("password");
2223
2223
  }
2224
2224
  } catch (err) {