Skip to content
Snippets Groups Projects
Commit 48d2fa2c authored by Bart Chou's avatar Bart Chou
Browse files

1. add vuex

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
parent d4b59689
No related branches found
No related tags found
3 merge requests!34Sprint 2 done,!311. add vuex,!29now server can create login cookie and client can store cookie in broser. We use userId as token for login cookie for convinence for now.
Showing
with 216 additions and 43 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment