Skip to content

Commit

Permalink
fix: router for master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mnenie committed Jul 12, 2024
1 parent ddfc5fc commit 7cc137f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/providers/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,7 @@ export const router = createRouter({
router.beforeEach((to, from) => {
// TODO(@mnenie): Add guards logic
// Needs to add guard auth logic in router
if (to.meta.requiresAuth === true) {
return router.push({ name: RouteNames.login });
}
});

0 comments on commit 7cc137f

Please sign in to comment.