cdaringe / pouchy

A simple, opinionated interface for PouchDB :pouch:

Home Page:http://cdaringe.github.io/pouchy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What about authentication?

VladimirCores opened this issue · comments

Can i use pouchdb-authentication plugin?

Pouchy adds a PouchDB reference to itself. You should be able to use that with PouchDB’s plugin API:

var Pouchy = require('pouchy')
var pouchDBAuthentication = require('pouchdb-authentication')

Pouchy.PouchDB.plugin(pouchDBAuthentication)

plugin is also a 1st class citizen:

var pouchConstructorMethods = [

Pouchy.plugin also works.