export default function ({ app ,$axios, redirect }) { $axios.onError(error => { const code = parseInt(error && error.response && error.response.status) if (code === 401) { app.$auth.$storage.removeUniversal('userPicture') app.$auth.$storage.removeUniversal('userLastName') app.$auth.$storage.removeUniversal('jwt') app.$auth.logout() } }) }