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