src/plugins/auth.js
Function install
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
install (Vue) {
if (localStorage.getItem(AUTH_TOKEN)) { // TODO DRY as it is used elsewhere
apolloClient.query({query: ME_QUERY}).then((res) => {
store.commit(types.SET_USER, res.data.me)
})