Merge branch 'dev' into feat/assignment-page

This commit is contained in:
Laure Jablonski 2025-04-21 08:29:47 +02:00 committed by GitHub
commit 9dcc1091cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 148 additions and 53 deletions

View file

@ -142,9 +142,8 @@ const router = createRouter({
router.beforeEach(async (to, _from, next) => {
// Verify if user is logged in before accessing certain routes
if (to.meta.requiresAuth) {
if (!authState.isLoggedIn.value) {
//Next("/login");
next();
if (!authService.isLoggedIn.value) {
next("/login");
} else {
next();
}