Remove legacy Nostr keypair authentication and fix auth service integration
- Remove obsolete LogoutDialog component that displayed private keys - Replace nostrStore.account references with authService.user in market module - Fix property access paths to use authService.user.value instead of currentUser - Update connection state checks to use relayHub instead of nostrStore - Clean up TODOs and remove unused nostrStore imports
This commit is contained in:
parent
30b9089829
commit
92c33aa0a3
3 changed files with 9 additions and 125 deletions
|
|
@ -272,7 +272,6 @@
|
|||
import { ref, computed, onMounted } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { useMarketStore } from '@/stores/market'
|
||||
import { useNostrStore } from '@/stores/nostr'
|
||||
import { injectService, SERVICE_TOKENS } from '@/core/di-container'
|
||||
import {
|
||||
Card,
|
||||
|
|
@ -292,7 +291,6 @@ import {
|
|||
|
||||
const route = useRoute()
|
||||
const marketStore = useMarketStore()
|
||||
const nostrStore = useNostrStore()
|
||||
const authService = injectService(SERVICE_TOKENS.AUTH_SERVICE) as any
|
||||
|
||||
// State
|
||||
|
|
@ -417,11 +415,11 @@ const placeOrder = async () => {
|
|||
isAuthenticated: authService.isAuthenticated.value,
|
||||
user: authService.user.value,
|
||||
hasPubkey: !!authService.user.value?.pubkey,
|
||||
nostrPubkey: nostrStore.account?.pubkey
|
||||
nostrPubkey: authService.user.value?.pubkey
|
||||
})
|
||||
|
||||
// Get pubkey from auth service or fallback to nostr store
|
||||
const userPubkey = authService.user.value?.pubkey || nostrStore.account?.pubkey
|
||||
// Get pubkey from auth service
|
||||
const userPubkey = authService.user.value?.pubkey
|
||||
|
||||
if (!authService.isAuthenticated.value) {
|
||||
throw new Error('You must be logged in to place an order')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue