2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

Add information about auth parameter to README (#2166)

This commit is contained in:
xlaguna
2019-05-28 18:57:59 +02:00
committed by Emily Morehouse
parent 5250e6e168
commit f28ff933e4
+2
View File
@@ -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.
// This will set an `Authorization` header, overwriting any existing
// `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: {
username: 'janedoe',
password: 's00pers3cret'