From 8eb2375629ddf3d590c933dc88b882613c27b18a Mon Sep 17 00:00:00 2001 From: Irwan Cahyono Date: Fri, 8 Aug 2025 00:12:58 +0700 Subject: [PATCH] auth --- stores/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stores/auth.ts b/stores/auth.ts index 7cf5038..f1d0a26 100644 --- a/stores/auth.ts +++ b/stores/auth.ts @@ -37,7 +37,7 @@ export const useAuthStore = defineStore('auth', () => { return true; } catch (error: any) { console.error('Login failed', error) - throw error + throw new Error(error) } } @@ -102,7 +102,7 @@ export const useAuthStore = defineStore('auth', () => { return true; } catch (error: any) { console.error('Refresh token failed', error) - throw error + throw new Error(error) } }