Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use transform-pouch instead of pouchdb-wrappers #8

Open
gr2m opened this issue Oct 15, 2016 · 2 comments
Open

use transform-pouch instead of pouchdb-wrappers #8

gr2m opened this issue Oct 15, 2016 · 2 comments

Comments

@gr2m
Copy link
Member

gr2m commented Oct 15, 2016

pouchdb-users hooks into db.put(), db.post() and db.bulkDocs() in order to transform a user doc into the format that CouchDB uses for its _users database. For example, it removes the .password proprety and replaces it with a .derived_key.

We currently use pouchdb-wrappers for that, although transform-pouch is a much better supported and tested library that does the same thing

Bonus (we can make a follow up issue for that): remove the Promise and make db.installUsersBehavior a sync operiation

@raydog99
Copy link

raydog99 commented Dec 6, 2016

Can you delegate this to me? I can add transform-pouch to the index.js file.

@gr2m
Copy link
Member Author

gr2m commented Dec 6, 2016

Sure, it's all yours, thanks for looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants