auth
This commit is contained in:
+2
-2
@@ -37,7 +37,7 @@ 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 error
|
throw new Error(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@ export const useAuthStore = defineStore('auth', () => {
|
|||||||
return true;
|
return true;
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.error('Refresh token failed', error)
|
console.error('Refresh token failed', error)
|
||||||
throw error
|
throw new Error(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user