Better error messages from backend, avoid bad toasts, cleanup of session validation.

This commit is contained in:
Leo Vasanko
2025-12-02 16:37:27 +00:00
parent 77d8e97dc9
commit a05d4aec81
8 changed files with 33 additions and 44 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ export const useAuthStore = defineStore('auth', {
throw new Error('Authentication required')
}
const result = await response.json()
if (result.detail) throw new Error(`Server: ${result.detail}`)
if (result.detail) throw new Error(result.detail)
await this.loadUserInfo()
},