refactor: Remove unused getCurrentUser function and clean up imports in events.ts

- Eliminate the unused getCurrentUser function from useAuth.ts to streamline authentication logic.
- Clean up imports in events.ts by removing the unused Event type, enhancing code clarity and maintainability.
This commit is contained in:
padreug 2025-08-01 23:11:48 +02:00
parent 0cc0bf3555
commit d9523cc784
2 changed files with 3 additions and 14 deletions

View file

@ -152,18 +152,7 @@ export function useAuth() {
}
})
// Get current user from API
async function getCurrentUser(): Promise<User | null> {
try {
console.log('Getting current user from API...')
const user = await lnbitsAPI.getCurrentUser()
console.log('Current user from API:', user)
return user
} catch (error) {
console.error('Error getting current user:', error)
return null
}
}
return {
// State