fix: persistence data loss and better auth error handling
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user