diff --git a/src/routes.ts b/src/routes.ts index 45afce8..b091dac 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -114,7 +114,7 @@ router.beforeEach( // If pages has meta 'requiresAuth' and user not logged in // send user to signin page. if (to.matched.some(record => record.meta.requiresAuth)) { - if (!loggedIn) { + if (!loggedIn()) { next({ path: "/signin" }); } }