🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

couchdb-user-account

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
c

couchdb-user-account

A couchdb user account library for user per database pattern

1.0.0
latest
72

Supply Chain Security

100

Vulnerability

87

Quality

75

Maintenance

100

License

Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Issues
0

couchdb-user-account model

build
status

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

FAQs

Package last updated on 30 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts