feat: todo in menubar toevoegen

This commit is contained in:
Joyelle Ndagijimana 2025-03-17 11:26:38 +01:00
parent d555144681
commit 37ecad30ea
2 changed files with 3 additions and 1 deletions

View file

@ -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");