cancel token axios code example
Example 1: delete axios token
axios.delete(URL, {
headers: {
Authorization: authorizationToken
},
data: {
source: source
}
});
Example 2: axios remove existing token
delete axios.defaults.headers.common["Authorization"];
// or which ever header you have to remove