Open learntheropes opened 2 years ago
I have this code:
plugins/axios.js
export default ({ $axios }) => { $axios.defaults.validateStatus = (status) => { return status < 500 } }
nuxt.config.js
export default { plugins: [ '~/plugins/axios.js' ] }
Why I'm still getting error with status code 401? I can't use an instance because this status code is from a default request of nuxt-auth module
I have this code:
plugins/axios.js
nuxt.config.js
Why I'm still getting error with status code 401? I can't use an instance because this status code is from a default request of nuxt-auth module