mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Add information about auth parameter to README (#2166)
This commit is contained in:
@@ -304,6 +304,8 @@ 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.
|
// `auth` indicates that HTTP Basic auth should be used, and supplies credentials.
|
||||||
// This will set an `Authorization` header, overwriting any existing
|
// This will set an `Authorization` header, overwriting any existing
|
||||||
// `Authorization` custom headers you have set using `headers`.
|
// `Authorization` custom headers you have set using `headers`.
|
||||||
|
// Please note that only HTTP Basic auth is configurable through this parameter.
|
||||||
|
// For Bearer tokens and such, use `Authorization` custom headers instead.
|
||||||
auth: {
|
auth: {
|
||||||
username: 'janedoe',
|
username: 'janedoe',
|
||||||
password: 's00pers3cret'
|
password: 's00pers3cret'
|
||||||
|
|||||||
Reference in New Issue
Block a user