Everything works. Minor adjustments on frontend and backend for the new API.

This commit is contained in:
Leo Vasanko
2025-08-02 07:41:42 -06:00
parent a987f47988
commit 30ab73d625
9 changed files with 43 additions and 391 deletions

View File

View 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'})