methods : {
sendCredentials() {
axios.post('http://URL/', {
username: this.username,
password: this.password
})
.then((response) => {
axios.defaults.headers.common.['Authorization'] = response.data.TOKEN;
})
.catch((error) => {
console.log(error);
});
},
}