This commit is contained in:
Irwan Cahyono 2025-08-08 00:35:28 +07:00
parent d48d3882d0
commit 85207f8ad2

View File

@ -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);
} }
} }