Everything works. Minor adjustments on frontend and backend for the new API.
This commit is contained in:
@@ -60,7 +60,8 @@ onMounted(async () => {
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to create link:', error)
|
||||
authStore.showMessage(`Failed to create device link: ${error.message}`, 'error')
|
||||
authStore.currentView = 'profile'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
0
frontend/src/stores/API.md
Normal file
0
frontend/src/stores/API.md
Normal file
@@ -79,6 +79,8 @@ export const useAuthStore = defineStore('auth', {
|
||||
this.currentUser = result.user
|
||||
this.currentCredentials = result.credentials || []
|
||||
this.aaguidInfo = result.aaguid_info || {}
|
||||
if (result.session_type === 'device addition') this.currentView = 'add-credential'
|
||||
console.log('User info loaded:', result)
|
||||
},
|
||||
async deleteCredential(uuid) {
|
||||
const response = await fetch(`/auth/credential/${uuid}`, {method: 'DELETE'})
|
||||
|
||||
Reference in New Issue
Block a user