move auth into vuex state

This commit is contained in:
2017-02-20 11:27:23 -07:00
parent 3d082f63f5
commit 0b313f10e1
7 changed files with 49 additions and 33 deletions

View File

@@ -0,0 +1,10 @@
export default {
state: {
user: null,
},
getters: {
isAuthenticated(state) {
return state.user !== null;
},
},
};