From c7df092d780679382ab16a2377b1b270e135b067 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 18 Jan 2026 13:39:50 -0600 Subject: [PATCH] fix: redirect unverified users to verification page from Login button (refs #53) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a user signs up but doesn't verify their email, clicking the Login button on the landing page would either do nothing or get stuck in a loading state. Now checks for pendingVerificationEmail in localStorage (set during signup) and redirects to /verify-email instead of attempting Auth0 login. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontend/src/pages/HomePage.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index 2bba592..5091dac 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -26,6 +26,14 @@ export const HomePage = () => { return; } + // Check if user has a pending email verification (signed up but not verified) + const pendingVerificationEmail = localStorage.getItem('pendingVerificationEmail'); + if (pendingVerificationEmail) { + // Redirect to verify-email page with the stored email + navigate('/verify-email', { state: { email: pendingVerificationEmail } }); + return; + } + loginWithRedirect({ appState: { returnTo: '/garage' } }); }; -- 2.49.1