This commit is contained in:
Irwan Cahyono 2025-08-08 00:12:58 +07:00
parent b30f396ec4
commit 8eb2375629

View File

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