diff --git a/frontend/src/components/MenuBar.vue b/frontend/src/components/MenuBar.vue index 122d08e2..b6adf606 100644 --- a/frontend/src/components/MenuBar.vue +++ b/frontend/src/components/MenuBar.vue @@ -12,6 +12,8 @@ const path = "/user"; const role = localStorage.getItem("activeRole"); + + //TODO: use authState form services map to get user token const name = "Kurt Cobain"; const initials = name .split(" ") diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 715b047c..1bac40ef 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -109,7 +109,7 @@ const router = createRouter({ }); router.beforeEach(async (to, from, next) => { - // Verify if user is logged in for paths that require access + // Verify if user is logged in for paths that require authentication if (to.meta.requiresAuth) { if (!authState.isLoggedIn) { next("/login");