webapp/src
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
..
assets Update index.html and vite.config.ts for dynamic app name and manifest adjustments 2025-09-06 19:16:24 +02:00
components Refactor authentication architecture to eliminate dual auth complexity 2025-09-07 00:47:02 +02:00
composables Refactor authentication architecture to eliminate dual auth complexity 2025-09-07 00:47:02 +02:00
core Refactor authentication architecture to eliminate dual auth complexity 2025-09-07 00:47:02 +02:00
i18n feat: Integrate chat feature into main navigation 2025-08-10 10:50:14 +02:00
lib Complete legacy code cleanup and achieve full modular architecture 2025-09-06 13:48:35 +02:00
modules Refactor authentication architecture to eliminate dual auth complexity 2025-09-07 00:47:02 +02:00
pages Refactor authentication architecture to eliminate dual auth complexity 2025-09-07 00:47:02 +02:00
stores Remove LEGACY Nostr client services and related components to streamline the codebase 2025-09-06 10:55:10 +02:00
app.config.ts Refactor chat module and navigation components for improved user experience 2025-09-05 00:31:53 +02:00
app.ts Refactor authentication architecture to eliminate dual auth complexity 2025-09-07 00:47:02 +02:00
App.vue Refactor authentication architecture to eliminate dual auth complexity 2025-09-07 00:47:02 +02:00
main.ts Implement modular architecture with core services and Nostr integration 2025-09-04 23:43:33 +02:00
vite-env.d.ts PWA 2025-02-11 00:25:47 +01:00