I want to get a refersh token when api response is 401. But when I log the error.status it undefiend or not exist!!
Bellow is my code :
Axios.interceptors.response.use((res) => res,
async (error) => {
console.log(error);
})
What is aproblem? How Can I fix it?