fix: persistence data loss and better auth error handling

This commit is contained in:
Gemini AI
2025-12-27 12:55:57 +04:00
Unverified
parent 875be6d903
commit 326825a5fb
2 changed files with 5 additions and 2 deletions

View File

@@ -126,7 +126,8 @@ const AntigravitySettings: Component = () => {
})
if (!response.ok) {
throw new Error('Failed to start authentication')
const errorData = await response.json().catch(() => ({}))
throw new Error(errorData.error || errorData.details || 'Failed to start authentication')
}
const data = await response.json() as {