couchdb-user-account

1.0.0 • Public • Published

couchdb-user-account model

buildstatus

This is a user account model module for applications looking to leverage couchdb _users database to manage application users as well as create a database per user and properly set the security properties giving the user account sole access to their datastore.

Requirements

Install

npm install couch-user-account

Usage

var account = require('couch-user-account')({ 
  protocol: 'http',
  host: 'localhost:5984',
  auth: 'foo:bar'
})
 
// register account
 
account.register({
  name: "foo",
  password: "beep",
  email: "foo@beep.com"
}, function(err, res) {
  console.log(res);
})

API

TODO

  • register
  • login
  • remove
  • setup
  • findByEmail
  • changePassword
  • createCode

Test

npm test

Support

  • create an issue on github

/couchdb-user-account/

    Package Sidebar

    Install

    npm i couchdb-user-account

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • twilson63