Add documentation.

This commit is contained in:
Eric Martindale 2014-06-29 18:05:31 -04:00
parent aff3ed9c44
commit 91e5e48009
1 changed files with 7 additions and 0 deletions

View File

@ -178,3 +178,10 @@ for(k in keys) {
}
```
## Middleware
BitAuth exposes a connect middleware for use in connect or ExpressJS applications. Use:
```
var bitauth = require('bitauth');
app.use( bitauth.middleware );
```