Skip to content

Commit

Permalink
fix: guards before production
Browse files Browse the repository at this point in the history
  • Loading branch information
mnenie committed Jan 15, 2025
1 parent 716ce00 commit c39ada2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/client/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const router = createRouter({

router.beforeEach((to, from) => {
// Needs to add guard auth logic in router
// if (to.meta.requiresAuth === true) {
// return router.push({ name: 'sign-in' })
// }
if (to.meta.requiresAuth === true) {
return router.push({ name: 'sign-in' })
}
})

router.beforeEach(layoutResolverGuard)
Expand Down

0 comments on commit c39ada2

Please sign in to comment.