@insforge/react 0.5.10 → 0.6.0

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.
@@ -23,6 +23,7 @@ function useSearchParams() {
23
23
  return adapter.useSearchParams();
24
24
  }
25
25
  var InsforgeContext = createContext(void 0);
26
+ InsforgeContext.displayName = "InsforgeContext";
26
27
  function useInsforge() {
27
28
  const context = useContext(InsforgeContext);
28
29
  if (!context) {
@@ -688,7 +689,7 @@ function AuthEmailVerificationStep({
688
689
  const isLinkMethod = method === "link";
689
690
  const displayDescription = isLinkMethod ? "We've sent an email to {email}. Please check your email to confirm your account before signing in. The confirmation link expires in 10 minutes." : "We've sent a verification code to your inbox at {email}. Enter it below to proceed.";
690
691
  useEffect(() => {
691
- if (emailSent && resendCountdown > 0) {
692
+ if (resendDisabled && resendCountdown > 0) {
692
693
  const timer = setInterval(() => {
693
694
  setResendCountdown((prev) => {
694
695
  if (prev <= 1) {
@@ -700,7 +701,7 @@ function AuthEmailVerificationStep({
700
701
  }, 1e3);
701
702
  return () => clearInterval(timer);
702
703
  }
703
- }, [emailSent, resendCountdown]);
704
+ }, [resendDisabled, resendCountdown]);
704
705
  const handleResend = async () => {
705
706
  setResendDisabled(true);
706
707
  setResendCountdown(60);