Phase 6: Error Recovery & Polish #417

Closed
opened 2026-02-16 16:57:17 +00:00 by jason.woltje · 0 comments
Owner

Parent Epic: #411

Stories

  • 6.1 Create auth-errors.ts with error parsing and PDA message mapping
  • 6.2 Add retry logic for network errors (3x exponential backoff)
  • 6.3 Enhance AuthProvider with session-expiring state
  • 6.4 Integrate SessionExpiryWarning into authenticated layout (5 min before expiry)
  • 6.5 Update auth-client.ts error messages to PDA-friendly language

Acceptance Criteria

  • Error parser classifies all error types correctly
  • Retry logic with 3x exponential backoff for network errors
  • AuthProvider detects session-expiring state
  • SessionExpiryWarning shows 5 minutes before session expiry
  • All auth-client.ts messages use PDA-friendly language
  • All new code has tests (85%+ coverage)
  • pnpm lint && pnpm typecheck && pnpm test pass

Dependencies

  • Phase 5 (#416) - login page working

Files

  • apps/web/src/lib/auth/auth-errors.ts (new)
  • apps/web/src/lib/auth-client.ts
  • apps/web/src/lib/auth/auth-context.tsx
## Parent Epic: #411 ## Stories - **6.1** Create auth-errors.ts with error parsing and PDA message mapping - **6.2** Add retry logic for network errors (3x exponential backoff) - **6.3** Enhance AuthProvider with session-expiring state - **6.4** Integrate SessionExpiryWarning into authenticated layout (5 min before expiry) - **6.5** Update auth-client.ts error messages to PDA-friendly language ## Acceptance Criteria - [ ] Error parser classifies all error types correctly - [ ] Retry logic with 3x exponential backoff for network errors - [ ] AuthProvider detects session-expiring state - [ ] SessionExpiryWarning shows 5 minutes before session expiry - [ ] All auth-client.ts messages use PDA-friendly language - [ ] All new code has tests (85%+ coverage) - [ ] pnpm lint && pnpm typecheck && pnpm test pass ## Dependencies - Phase 5 (#416) - login page working ## Files - apps/web/src/lib/auth/auth-errors.ts (new) - apps/web/src/lib/auth-client.ts - apps/web/src/lib/auth/auth-context.tsx
jason.woltje added this to the Auth-Frontend-Remediation (0.0.14) milestone 2026-02-16 16:57:17 +00:00
jason.woltje added the authweb labels 2026-02-16 16:57:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#417