Skip to content

Commit e88a13f

Browse files
authored
Add mention of bearer auth to docs (#1583)
1 parent a009ace commit e88a13f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ By default only `Basic` auth is used. In browser you can add `{type:'auto'}` to
485485

486486
request.auth('digest', 'secret', {type:'auto'})
487487

488+
The `auth` method also supports a `type` of `bearer`, to specify token-based authentication:
489+
490+
request.auth('my_token', { type: 'bearer' })
491+
488492
## Following redirects
489493

490494
By default up to 5 redirects will be followed, however you may specify this with the `res.redirects(n)` method:

0 commit comments

Comments
 (0)