Skip to content

Commit edb5bca

Browse files
authoredFeb 24, 2021
docs: add auth example with Bearer Token (#282)
1 parent 56e15ff commit edb5bca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎README.md

+6
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ chai.request(app)
147147
chai.request(app)
148148
.get('/protected')
149149
.auth('user', 'pass')
150+
151+
// Authenticate with Bearer Token
152+
chai.request(app)
153+
.get('/protected')
154+
.auth(accessToken, { type: 'bearer' })
155+
150156
```
151157

152158
`.query()`

0 commit comments

Comments
 (0)
Please sign in to comment.