Closed alucardu closed 3 years ago
I have simple plugin:
axios.js
export default ({ $axios }) => { $axios.interceptors.request.use((req) => { console.log('request: ', req) return req }) $axios.interceptors.response.use((req) => { console.log('response: ', req) return req }) }
nuxt.config.js
plugins: [ { mode: 'client', src: '~/plugins/axios' } ],
When I run my Nuxt config like this and do a request the console.log is triggered.
But when I add the plugin to the nuxt auth plugin options:
auth: { // omitted plugins: [ { mode: 'client', src: '~/plugins/axios' } ] },
The console.log isn't triggered anymore.
@JoaoPedroAS51 do you mind quick checking this issue?
@Atinux Sure! We are checking at https://github.com/nuxt-community/auth-module/issues/1026
Closing here then.
I have simple plugin:
axios.js
nuxt.config.js
When I run my Nuxt config like this and do a request the console.log is triggered.
But when I add the plugin to the nuxt auth plugin options:
The console.log isn't triggered anymore.