Home

Issue: 2680

[ISSUE] Vuex + Axios + JWT Token Auth

[issue link]

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!

This question is available on Nuxt.js community (#c2329)