diff --git a/src/App.vue b/src/App.vue index 94e583a..1ec1924 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,11 +11,13 @@ const { isAuthenticated, logout } = useAuth(); const toastService = useToast(); const authenticationService = new AuthenticationService(); +const { login } = useAuth(); + const fetchUser = async () => { if (isAuthenticated.value) { try { authenticatedUser.value = await authenticationService.findMe(); - } catch (error) { + } catch (error: any) { console.error(error); } } else { @@ -68,6 +70,11 @@ function handleLogout() { diff --git a/src/components/Home.vue b/src/components/Home.vue index 736fb6f..11fd90b 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -1,6 +1,7 @@