meteor-vuetify
meteor-vuetify copied to clipboard
how to check `user` of Vuex in `outer.beforeEach((to, from, next)`?
I tried
router.beforeEach((to, from, next) => {
// ....
if(store.state.user){
........
}
But have problem when refresh page, It get null (but User loginned)
Sorry @thearabbit , I did not get the notification for this issue.
Did you figure it out yet?
Could you example to check user login/logout in router.beforeEach