colinskow / superlogin

Powerful authentication for APIs and single page apps using the CouchDB ecosystem which supports a variety of providers.
MIT License
371 stars 118 forks source link

Enhancement: `getUserDB` method #66

Open SukantGujar opened 8 years ago

SukantGujar commented 8 years ago

Please add a getUserDB(user_id, dbName, type) method which returns a PouchDB instance with admin access. This will allow the server API to easily manipulate the user DB with admin privileges. Without this API, the only way is to share the CouchDB admin credentials separately with the rest of the server code.

This will also go in parallel with other PouchDB instances provided by superlogin, like usersDB and couchAuthDB.

colinskow commented 8 years ago

OK. I'll work on this for the next release.