title: Vue-auth websanova
body: <p>i'm trying to integrate JWT authentication in my client using websanova. </p>
  
  <p>My problem is that on every http request, library is setting token of the response body. Here is my app.js configuration </p>
  
  <pre><code>Vue.use(VueAxios, axios)
  Vue.use(VueAuth, {
    auth: {
      request: function (req, token) {
        req.headers['Authorization'] = 'JWT ' + token;
      },
      response: function (res) {
        return res.data
      }
    },
    http: require('@websanova/vue-auth/drivers/http/axios.1.x.js'),
    router: require('@websanova/vue-auth/drivers/router/vue-router.2.x.js'),
    loginData: { url: 'http://localhost:5005/api/authenticate', fetchUser: false },
    fetchData: { enabled: false },
    refreshData: { enabled: false },
    authRedirect: { path: '/' }
  })
  </code></pre>
  
  <p>And i handle login like this</p>
  
  <pre><code>login () {
  this.$store.dispatch("login");
  var redirect = this.$auth.redirect();
    this.$auth.login({
    headers: {
      'Content-Type': 'application/json'
    },
  data: this.data.body,
  rememberMe: this.data.rememberMe,
  redirect: { name: redirect ? redirect.from.name : 'Home' },
  fetchUser: false,
  success (res) {
    this.$store.dispatch("login_success");
  },
  err (err) { ...
  </code></pre>
  
  <p>Token is recived fine on login, but then when i want to display some table, token is overwriten by table source.</p>
  
  <p>local storage before and after : 
  <img src="https://i.stack.imgur.com/qRvdB.png" alt="local storage before and after"></p>