You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently basic auth is implemented with custom headers as an interceptor for all requests, though axios can support basic auth as an options - from the docs:
// `auth` indicates that HTTP Basic auth should be used, and supplies credentials.
// This will set an `Authorization` header, overwriting any existing
// `Authorization` custom headers you have set using `headers`.
auth: {
username: 'janedoe',
password: 's00pers3cret'
}
I suggest we change the auth-driveropts to match axios opts. So this would change:
Currently basic auth is implemented with custom headers as an interceptor for all requests, though axios can support basic auth as an options - from the docs:
I suggest we change the
auth-driver
opts
to matchaxios
opts. So this would change:to...
By doing this it would remove unnecessary code as the functionality is supported natively.
The text was updated successfully, but these errors were encountered: