Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix: pass email param in verification polling and stop on 401
Gabriel Stein87aaa582bcbb
diff --git a/src/components/EmailVerificationStep.tsx b/src/components/EmailVerificationStep.tsxindex 6adb84022..2bf4d0293 100644--- a/src/components/EmailVerificationStep.tsx+++ b/src/components/EmailVerificationStep.tsx@@ -25,11 +25,11 @@ export default function EmailVerificationStep({ email, onVerified }: EmailVerifiuseEffect(() => {if (!OPENWHISPR_API_URL || verified) return;+ const url = `${OPENWHISPR_API_URL}/api/auth/verification-status?email=${encodeURIComponent(email)}`;+pollRef.current = setInterval(async () => {try {- const res = await fetch(`${OPENWHISPR_API_URL}/api/auth/verification-status`, {- credentials: "include",- });+ const res = await fetch(url, { credentials: "include" });if (res.ok) {const data = await res.json();if (data.verified) {@@ -37,16 +37,19 @@ export default function EmailVerificationStep({ email, onVerified }: EmailVerifiif (pollRef.current) clearInterval(pollRef.current);setTimeout(() => onVerified(), 1200);}+ } else if (res.status === 401 || res.status === 400) {+ if (pollRef.current) clearInterval(pollRef.current);+ setError("Session expired. Please restart the sign-up process.");}} catch {- // Silently retry on next poll+ // Network error — silently retry on next poll}}, 5000);return () => {if (pollRef.current) clearInterval(pollRef.current);};- }, [verified, onVerified]);+ }, [email, verified, onVerified]);const handleResend = useCallback(async () => {if (resendCooldown > 0 || isResending || !OPENWHISPR_API_URL) return;