Skip to content
Snippets Groups Projects
  • Bart Chou's avatar
    48d2fa2c
    1. add vuex · 48d2fa2c
    Bart Chou authored
    2. server return session token with Usermodel after successfully login -> store login status in vuex
    3. add log out button -> clear token in localstorage and login status in vuex
    4. now we can define each route whether it needs auth (login status) to continue redirecting
    48d2fa2c
    History
    1. add vuex
    Bart Chou authored
    2. server return session token with Usermodel after successfully login -> store login status in vuex
    3. add log out button -> clear token in localstorage and login status in vuex
    4. now we can define each route whether it needs auth (login status) to continue redirecting
AppHeader.vue 993 B