## Summary
- Fixes unresponsive Login button for unverified users on landing page
- Checks for `pendingVerificationEmail` in localStorage (set during signup)
- Redirects to `/verify-email` page instead of attempting Auth0 login
- Existing verification page infrastructure handles the rest
## Root Cause
When an unverified user clicks Login:
1. If Auth0 session exists, `isAuthenticated` is true, navigates to `/garage`
2. Auth gate may never become ready (token acquisition fails for unverified users)
3. Results in "Initializing session..." spinner forever or silent redirect back
## Solution
Before calling `loginWithRedirect`, check if the user has a pending verification:
```typescript
const pendingVerificationEmail = localStorage.getItem('pendingVerificationEmail');
if (pendingVerificationEmail) {
navigate('/verify-email', { state: { email: pendingVerificationEmail } });
return;
}
```
## Test Plan
- [ ] Sign up with new email, do NOT verify
- [ ] Navigate to landing page
- [ ] Click Login button
- [ ] Should redirect to /verify-email page with email displayed
- [ ] Test on desktop viewport
- [ ] Test on mobile viewport
Fixes #53
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 <[email protected]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
pendingVerificationEmailin localStorage (set during signup)/verify-emailpage instead of attempting Auth0 loginRoot Cause
When an unverified user clicks Login:
isAuthenticatedis true, navigates to/garageSolution
Before calling
loginWithRedirect, check if the user has a pending verification:Test Plan
Fixes #53