Static GitHub Issues

[2680] [ISSUE] Vuex + Axios + JWT Token Auth

prev: Vendor to big
next: When to use <no-ssr> when not to?

I have the following problem with Vuex and Axios auth tokens.

https://stackoverflow.com/questions/48402747/nuxt-js-vue-js-setting-axios-auth-token-in-vuex-store-resets-after-refresh

It works fine in client side, but after page refresh the token is not set anymore, tho I think I get the user fine. But the store seems to be filled at first, but when I press "Time travel to this state" it becomes empty and I get logged out.

On top of this I'm getting a bunch of PAGE NOT FOUND errors in console everytime i refresh the page.

Any clues on whats going on? I've added my stores index.js file in the stackoverflow question above.

Thanks for any input!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2329">#c2329</a>)</em></sub></div>