how can we pass token in vuejs

this.axios
.get(this.getApiUrlByProcess(this.process, "get_categories"),
this.getAuthHeaders())



const query = this.getAuthHeaders();
let input = this.deleteEmptyKeys(this.customer);
this.axios
.post(this.$api.create_customer, input, query)
ss


getAuthHeaders: function() {
const user = this.getUserData();
const customer = $cookies.get("user.customer_slug");
if (user != (null || undefined)) {
this.$apiHeaders["headers"]["Authorization"] = "Bearer " + user.access_token;
this.$apiHeaders["headers"]["X-Customer"] = customer;
}
return this.$apiHeaders;
},






No comments:

Post a Comment

what is systems manager

 = session connect ayinappudu cloud watch lo store ayyi vuntadhi = https://us-east-1.console.aws.amazon.com/systems-manager/session-manager/...