In an action, I'm doing:
this.$cookies.set("token", response.token, "7d");
this.$cookies.set("UserId", response.UserId, "7d");
But alas $cookies is not defined.
In an action, I'm doing:
this.$cookies.set("token", response.token, "7d");
this.$cookies.set("UserId", response.UserId, "7d");
But alas $cookies is not defined.
You can install js-cookie library and than access cookie like this in vuex store: