@insforge/react 1.1.2-dev.0 → 1.1.2-dev.3

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.
@@ -1771,7 +1771,7 @@ function useInsforge() {
1771
1771
  signOut: () => Promise.resolve(),
1772
1772
  updateUser: () => Promise.resolve({ error: "SSR mode" }),
1773
1773
  reloadAuth: () => Promise.resolve({ success: false, error: "SSR mode" }),
1774
- sendVerificationEmail: () => Promise.resolve(null),
1774
+ resendVerificationEmail: () => Promise.resolve(null),
1775
1775
  sendResetPasswordEmail: () => Promise.resolve(null),
1776
1776
  resetPassword: () => Promise.resolve(null),
1777
1777
  verifyEmail: () => Promise.resolve({ error: "SSR mode" }),
@@ -3352,7 +3352,7 @@ function AuthEmailVerificationStep({
3352
3352
  onVerifyCode,
3353
3353
  emailSent = false
3354
3354
  }) {
3355
- const { sendVerificationEmail } = useInsforge();
3355
+ const { resendVerificationEmail } = useInsforge();
3356
3356
  const [resendDisabled, setResendDisabled] = React2.useState(emailSent ? true : false);
3357
3357
  const [resendCountdown, setResendCountdown] = React2.useState(emailSent ? 60 : 0);
3358
3358
  const [isSending, setIsSending] = React2.useState(false);
@@ -3379,7 +3379,7 @@ function AuthEmailVerificationStep({
3379
3379
  setResendCountdown(60);
3380
3380
  setIsSending(true);
3381
3381
  try {
3382
- await sendVerificationEmail(email);
3382
+ await resendVerificationEmail(email);
3383
3383
  } catch {
3384
3384
  setResendDisabled(false);
3385
3385
  setResendCountdown(0);
@@ -3867,7 +3867,7 @@ function createPasswordSchema(options) {
3867
3867
  return schema;
3868
3868
  }
3869
3869
  createPasswordSchema();
3870
- function SignUp({ onError, ...uiProps }) {
3870
+ function SignUp({ onError, emailRedirectTo, ...uiProps }) {
3871
3871
  const { signUp, verifyEmail, loginWithOAuth } = useInsforge();
3872
3872
  const { authConfig } = usePublicAuthConfig();
3873
3873
  const [email, setEmail] = React2.useState("");
@@ -3909,7 +3909,7 @@ function SignUp({ onError, ...uiProps }) {
3909
3909
  return;
3910
3910
  }
3911
3911
  try {
3912
- const result = await signUp(emailValidation.data, password);
3912
+ const result = await signUp(emailValidation.data, password, { emailRedirectTo });
3913
3913
  if ("error" in result) {
3914
3914
  throw new Error(result.error);
3915
3915
  }