web-app/src/modules/chat
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
..
components Implement LNbits integration in AuthService and enhance ChatComponent for improved user experience 2025-09-05 02:48:47 +02:00
composables Refactor chat module to utilize standardized service tokens for improved dependency management 2025-09-05 16:35:03 +02:00
services Refactor authentication architecture to eliminate dual auth complexity 2025-09-07 00:47:02 +02:00
types Enhance market module with new chat and events features 2025-09-05 00:01:40 +02:00
views Fix TypeScript build errors in module pages 2025-09-06 17:00:27 +02:00
index.ts Refactor chat module to utilize standardized service tokens for improved dependency management 2025-09-05 16:35:03 +02:00