don't save proxy user's tokens in localstorage

we still want those tokens, we will use them in the mobile app. but we
don't want them client side, otherwise proxy users remain logged in. we
centralize the logic around storing the token, and turn `setUser` into
an action vs a mutation
This commit is contained in:
Igor Serebryany 2023-10-06 15:35:04 -07:00
parent 096b5496b3
commit 63f1df4015
No known key found for this signature in database
GPG key ID: 0AF607692FD9EB24
5 changed files with 19 additions and 24 deletions

View file

@ -293,7 +293,7 @@ export default {
},
userUpdated(user) {
if (this.$store.state.user.user.id === user.id) {
this.$store.commit('user/setUser', user)
this.$store.dispatch('user/setUser', user)
}
},
userOnline(user) {
@ -656,4 +656,4 @@ export default {
margin-left: 0px;
}
}
</style>
</style>