login
This commit is contained in:
parent
d48d3882d0
commit
85207f8ad2
@ -36,8 +36,9 @@ export const useAuthStore = defineStore('auth', () => {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.error('Login failed', error)
|
console.error('Login failed', error);
|
||||||
throw new Error(error)
|
const message = error?.data?.detail || error?.message || 'Unknown error during login';
|
||||||
|
throw new Error(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user