Socket
Socket
Sign inDemoInstall

couchdb-user-account

Package Overview
Dependencies
73
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    couchdb-user-account

A couchdb user account library for user per database pattern


Version published
Weekly downloads
3
Maintainers
1
Install size
6.68 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 30 Jan 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc