JWT authentication with Nuxt.js
[issue link]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?