title: How to store data to local storage with Nuxt.js
body: <p>As you know, nuxtjs is server side rendering and there is no good example how to store data into localstorage which is client side.</p>
  
  <p>My work is need to build login form where user can put username and password into the form the send it to server (via api) to check, if login data is correct, the api will return one token key then I will store this key to verify is user is authen and use it with other api.</p>
  
  <p>I found some example but build with vuejs here <a href="https://auth0.com/blog/build-an-app-with-vuejs/" rel="noreferrer">https://auth0.com/blog/build-an-app-with-vuejs/</a> but I don't have an idea how to change it to nuxtjs.</p>
  
  <p>Any I have read <a href="https://github.com/robinvdvleuten/vuex-persistedstate" rel="noreferrer">https://github.com/robinvdvleuten/vuex-persistedstate</a> which I can plug in to my project but I would like to see other solution.</p>
  
  <p>Regards. </p>