Skip to content

Commit

Permalink
Add mention of bearer auth to docs (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
WasabiFan committed Aug 3, 2020
1 parent a009ace commit e88a13f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,10 @@ By default only `Basic` auth is used. In browser you can add `{type:'auto'}` to

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

The `auth` method also supports a `type` of `bearer`, to specify token-based authentication:

request.auth('my_token', { type: 'bearer' })

## Following redirects

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

0 comments on commit e88a13f

Please sign in to comment.