Use an other instance of axios ? #1505
Unanswered
vince83110
asked this question in
Q&A
Replies: 2 comments
-
Just make your own auth, much easier. This is not customizable, for example, if you want to send different headers while getting token - it's not possible to do so. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@vince83110 It is a good idea, but I don't think they will change it now to help you. So it is easier if your app is the one that creates a new instance of axios. https://stackoverflow.com/questions/67718493/nuxtjs-manage-several-axios-instances |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have my NuxtJS app running using ElasticSearch as a data store.
I have configurated my Nuxt axios instance to use the ElasticSearch (SSR and client).
I want to keep this configuration, is it possible to make the auth module to not use my Nuxt axios instance ? But an other one ?
I noticed Nuxt auth changes my headers, and I need basic auth for my ElasticSearch.
I tried to redefine the axios in a plugin:
But no success. Can I override the constructor or something ? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions