Hello,
I have multiple api's and have the axios's baseUrl set to an api
But I have the authentication api on a different domain
I have tried passing baseUrl config when calling loginWith
But it does not seem that its working.
The apiLogin schema extends the LocalSchema and I overwrite just the updateTokens method (because I have multiple tokens)
So, my question is, how can I change the baseUrl for this axios instance, without changing the main axios configuration.
I have tried ovewriting the Auth class in the constructor, but it does not seem to work either
Currently there is no way to do this, the Auth module accesses the Axios Instance and does not use its own, the only way is to change the Axios configuration, nothing else comes to my mind.
Hello, I have multiple api's and have the axios's baseUrl set to an api But I have the authentication api on a different domain I have tried passing baseUrl config when calling loginWith
But it does not seem that its working. The apiLogin schema extends the LocalSchema and I overwrite just the updateTokens method (because I have multiple tokens)
So, my question is, how can I change the baseUrl for this axios instance, without changing the main axios configuration.
I have tried ovewriting the Auth class in the constructor, but it does not seem to work either
$auth.options.baseURL is set up in nuxt.config.js