fix: Add pre-auth session clear mechanism on HomePage (#188) #192

Closed
opened 2026-02-15 03:45:46 +00:00 by egullickson · 0 comments
Owner

Relates to #188

Summary

Add a "Trouble logging in?" link on the homepage that allows users to clear stale auth credentials without needing to navigate to Settings (which requires authentication).

Problem

When users are stuck in an auth limbo state (stale tokens prevent login but no way to clear them), they have no self-recovery mechanism. The logout button is in Settings, which requires authentication to access.

Changes

  • File: frontend/src/pages/HomePage.tsx
    • Add "Trouble logging in?" text link below Login button (both mobile and desktop menus)
    • On tap: clear IndexedDB auth cache, clear localStorage auth items, reset Auth0 SDK state
    • Show brief "Session cleared" confirmation feedback
    • Style: subtle text link for recovery scenarios only

Acceptance Criteria

  • "Trouble logging in?" link visible on homepage (mobile and desktop)
  • Clears IndexedDB auth cache and localStorage auth items
  • Shows confirmation feedback after clearing
  • After clearing, Login button correctly redirects to Auth0
Relates to #188 ## Summary Add a "Trouble logging in?" link on the homepage that allows users to clear stale auth credentials without needing to navigate to Settings (which requires authentication). ## Problem When users are stuck in an auth limbo state (stale tokens prevent login but no way to clear them), they have no self-recovery mechanism. The logout button is in Settings, which requires authentication to access. ## Changes - **File**: `frontend/src/pages/HomePage.tsx` - Add "Trouble logging in?" text link below Login button (both mobile and desktop menus) - On tap: clear IndexedDB auth cache, clear localStorage auth items, reset Auth0 SDK state - Show brief "Session cleared" confirmation feedback - Style: subtle text link for recovery scenarios only ## Acceptance Criteria - [ ] "Trouble logging in?" link visible on homepage (mobile and desktop) - [ ] Clears IndexedDB auth cache and localStorage auth items - [ ] Shows confirmation feedback after clearing - [ ] After clearing, Login button correctly redirects to Auth0
egullickson added the
status
in-progress
type
bug
labels 2026-02-15 03:45:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: egullickson/motovaultpro#192