web-app/src/composables
padreug 4feb5459cc Refactor authentication architecture to eliminate dual auth complexity
This major refactor consolidates the authentication system to use a single
source of truth, eliminating timing issues and architectural complexity
that was causing chat and payment functionality problems.

Key Changes:
• Remove old global useAuth composable and replace with useAuthService wrapper
• Update all 25+ files to use consistent auth pattern via dependency injection
• Eliminate dual auth detection workarounds from services (ChatService, PaymentService, etc.)
• Fix TypeScript errors and add proper Uint8Array conversion for Nostr private keys
• Consolidate auth state management to AuthService as single source of truth

Benefits:
• Resolves chat peer loading and message subscription timing issues
• Fixes wallet detection problems for Lightning payments
• Eliminates race conditions between global and injected auth
• Maintains API compatibility while improving architecture
• Reduces code complexity and improves maintainability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-07 00:47:02 +02:00
..
useAuthService.ts Refactor authentication architecture to eliminate dual auth complexity 2025-09-07 00:47:02 +02:00
useDemoAccountGenerator.ts make sure username < 20 characters 2025-09-04 11:51:00 +02:00
useFuzzySearch.ts refactor: Update FuzzySearch component and composable for improved class handling and code clarity 2025-08-10 10:50:14 +02:00
useLocale.ts feat(i18n): Enhance internationalization with dynamic locale management 2025-03-09 13:27:45 +01:00
useModularNavigation.ts Update Navbar and useModularNavigation to replace 'BarChart3' icon with 'Store' 2025-09-05 06:41:53 +02:00
useModuleReady.ts Fix blank page issue on module route refresh 2025-09-06 16:33:32 +02:00