Improve check auth in middleware. Some fixes.

This commit is contained in:
2019-03-23 11:51:50 +07:00
parent b79f31e7de
commit 3c7d774757
4 changed files with 36 additions and 17 deletions

View File

@@ -39,10 +39,6 @@ new Vue({
store,
render: h => h(App),
created: function onApplicationCreated() {
firebase.auth().onAuthStateChanged((user) => {
this.$store.dispatch('stateChanged', user);
});
this.$store.dispatch('loadArticles');
},
}).$mount('#app');