1.0.0 • Published 2 years ago

@inator/express-jwt-pouchdb v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

express-jwt-pouchdb

This forked variant of express-jwt-pouchdb brings express-pouch up to date and also makes the username_claim configuration behave as intended by couch_jwt_auth. See https://github.com/tyler-johnson/express-jwt-pouchdb/pull/4.

npm David Build Status

Express-PouchDB clone with JSON Web Token support. This is designed to mimic the couch_jwt_auth plugin for CouchDB so it can serve as a testing server. Configuration and usage matches that plugin.

Usage

Install with NPM:

npm i express-jwt-pouchdb --save

And use just like you would express-pouchdb:

var express = require("express"),
    app     = express(),
    PouchDB = require("pouchdb");

app.use("/db", require("express-jwt-pouchdb")(PouchDB));

app.listen(3000);