Hi.
I'm new to all this JavaScript and above stuff - having troubles making a simple JWT based authentication. After a successful login I receive a JWT from my backend (Django REST framework) and I am authenticated across my Nuxt app until I refresh the page. So I thought - just store the JWT in local storage. But I have no access to localStorage
in state/index.js
I guess because of the server-side rendering.
How can I persist my JWT in the browser?
<!--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/c502">#c502</a>)</em></sub></div>