2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Dropping support for auth.user/pass

Only accept `username` and `password` as arguments
This commit is contained in:
Idan Gazit
2015-12-10 17:21:31 +02:00
parent 3138600caf
commit af170334bd
2 changed files with 4 additions and 6 deletions
+2 -4
View File
@@ -218,11 +218,9 @@ These are the available config options for making requests. Only the `url` is re
// `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`.
// The username can be supplied as `user` or `username`
// The password can be supplied as `pass` or `password`
auth: {
user: 'janedoe',
pass: 's00pers3cret'
username: 'janedoe',
password: 's00pers3cret'
}
// `responseType` indicates the type of data that the server will respond with