We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a009ace commit e88a13fCopy full SHA for e88a13f
docs/index.md
@@ -485,6 +485,10 @@ By default only `Basic` auth is used. In browser you can add `{type:'auto'}` to
485
486
request.auth('digest', 'secret', {type:'auto'})
487
488
+The `auth` method also supports a `type` of `bearer`, to specify token-based authentication:
489
+
490
+ request.auth('my_token', { type: 'bearer' })
491
492
## Following redirects
493
494
By default up to 5 redirects will be followed, however you may specify this with the `res.redirects(n)` method:
0 commit comments