Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 279ac8a

Browse files
committed
fix: more readme typos
1 parent 261946a commit 279ac8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To begin, ensure proxy authentication is enabled on your CouchDB server. This is
3131
authentication_handlers = {couch_httpd_oauth, oauth_authentication_handler}, {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, proxy_authentication_handler}, {couch_httpd_auth, default_authentication_handler}
3232
```
3333

34-
This library returns an Express/Connect middleware function. It accepts two arguments: a user context method and some options.
34+
This library returns an Express/Connect middleware function. It accepts two arguments: a user context method and some options. Here is an example proxy that makes every request a super admin request.
3535

3636
```js
3737
const app = express();
@@ -47,7 +47,7 @@ app.use(couchdbProxy(function(req) {
4747

4848
In CouchDB, users are represented with a user context object. These are simply objects with `name` and `roles` fields. Usually this information comes from a document in the `_users` database, however we can also generate it from other means.
4949

50-
This library allows you to complete asynchronous authentication lookups. The simple version to return a Promise.
50+
This library allows you to complete asynchronous authentication lookups. The simple version is to return a Promise.
5151

5252
```js
5353
app.use(couchdbProxy(function(req, res) {

0 commit comments

Comments
 (0)