commerce website and this is my checkout.vue code when post request an authenticated error 401 and i don't know where the problem is some says its becuase axios and i should replace it with fetch api,any suggestion?
const data={'first_name':this.first_name,'last_name':this.last_name,'eamil':this.eamil,'address':this.address,"zipcode":this.zipcode,"place":this.place,"phone":this.phone,"items":items,'stripe_token':token.id } await axios .post("/api/v1/checkout/",data) .then(response=>{ this.$store.commit("clearCart") this.$router.push("/cart/success") }) .catch(error=>{ this.errors.push("Something went wrong. Please try again") console.log(error) }) this.$store.commit('setIsLoading',false) }