Skip to content

Commit

Permalink
docs: add auth example with Bearer Token (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyuls committed Feb 24, 2021
1 parent 56e15ff commit edb5bca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ chai.request(app)
chai.request(app)
.get('/protected')
.auth('user', 'pass')

// Authenticate with Bearer Token
chai.request(app)
.get('/protected')
.auth(accessToken, { type: 'bearer' })

```

`.query()`
Expand Down

0 comments on commit edb5bca

Please sign in to comment.