From e88a13fb2fd17e62c41576683e40bbc37210fccf Mon Sep 17 00:00:00 2001 From: Kaelin Laundry Date: Mon, 3 Aug 2020 13:40:29 -0700 Subject: [PATCH] Add mention of bearer auth to docs (#1583) --- docs/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/index.md b/docs/index.md index 90d7d0356..df9b8adef 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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: