nuxt/todomvc

When the session expires on the backend, the vuex store still has the session

slidenerd opened this issue · 1 comments

  • Instead of doing req.session.todos as in your example, if you were logging in a user,
  • you would send a request to /api/login
  • You will set the user req.session.authuser = something
  • The problem however is that when the session expires, the authuser is still set
  • nuxtServerInit is called only when you type the url or refresh the page but if you are navigating between pages without refreshing the authUser is still
  • how would you handle expiry of the value in vuex when req.session expires?
This question is available on Nuxt community (#c17)

This issue as been imported as question since it does not respect todomvc issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/todomvc/issues/c17.