Skip to content

use transform-pouch instead of pouchdb-wrappers #8

@gr2m

Description

@gr2m

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions