🐶 Account JSON API backed by PouchDB
Switch branches/tags
217/accounts-sessions-post 235/token-signin first-timers-only-update-license greenkeeper/base64url-3.0.0 greenkeeper/boom-6.0.0 greenkeeper/boom-7.0.0 greenkeeper/boom-7.1.0 greenkeeper/boom-7.1.1 greenkeeper/boom-7.2.0 greenkeeper/couchdb-calculate-session-id-1.1.3 greenkeeper/couchdb-calculate-session-id-pin-1.1.2 greenkeeper/coveralls-3.0.1 greenkeeper/coveralls-pin-3.0.0 greenkeeper/@gar/hapi-json-api-2.0.4 greenkeeper/@gar/hapi-json-api-2.0.5 greenkeeper/@gar/hapi-json-api-2.0.6 greenkeeper/@gar/hapi-json-api-pin-2.0.2 greenkeeper/hapi-16.2.0 greenkeeper/hapi-16.3.0 greenkeeper/hapi-16.3.1 greenkeeper/hapi-16.4.0 greenkeeper/hapi-16.4.1 greenkeeper/hapi-16.4.2 greenkeeper/hapi-16.4.3 greenkeeper/hapi-16.5.0 greenkeeper/hapi-17.0.0 greenkeeper/hapi-17.0.2 greenkeeper/hapi-17.1.0 greenkeeper/hapi-17.1.1 greenkeeper/hapi-17.2.0 greenkeeper/hapi-17.2.1 greenkeeper/hapi-17.2.2 greenkeeper/hapi-17.2.3 greenkeeper/hapi-17.3.0 greenkeeper/hapi-17.3.1 greenkeeper/hapi-17.4.0 greenkeeper/hapi-17.5.0 greenkeeper/hapi-pin-16.1.1 greenkeeper/hapi-pin-16.4.3 greenkeeper/@hoodie/account-server-api-3.8.7 greenkeeper/@hoodie/account-server-api-pin-3.2.0 greenkeeper/@hoodie/account-server-api-pin-3.6.2 greenkeeper/@hoodie/account-server-api-pin-3.7.1 greenkeeper/@hoodie/account-server-api-pin-3.8.6 greenkeeper/joi-10.4.2 greenkeeper/joi-10.5.0 greenkeeper/joi-10.5.1 greenkeeper/joi-10.5.2 greenkeeper/joi-11.0.0 greenkeeper/joi-11.0.1 greenkeeper/joi-11.0.2 greenkeeper/joi-11.0.3 greenkeeper/joi-11.1.0 greenkeeper/joi-11.1.1 greenkeeper/joi-11.2.0 greenkeeper/joi-11.3.0 greenkeeper/joi-11.3.2 greenkeeper/joi-11.3.3 greenkeeper/joi-11.3.4 greenkeeper/joi-11.4.0 greenkeeper/joi-12.0.0 greenkeeper/joi-13.0.0 greenkeeper/joi-13.0.1 greenkeeper/joi-13.0.2 greenkeeper/joi-13.1.0 greenkeeper/joi-13.1.1 greenkeeper/joi-13.1.2 greenkeeper/joi-13.1.3 greenkeeper/joi-13.2.0 greenkeeper/joi-13.3.0 greenkeeper/joi-pin-10.4.1 greenkeeper/lodash-4.17.1 greenkeeper/lodash-4.17.9 greenkeeper/lolex-2.4.0 greenkeeper/lolex-2.4.1 greenkeeper/lolex-2.5.0 greenkeeper/lolex-2.6.0 greenkeeper/lolex-pin-2.3.2 greenkeeper/memdown-2.0.0 greenkeeper/nock-9.0.9 greenkeeper/nock-9.1.6 greenkeeper/nock-9.1.7 greenkeeper/nock-9.1.8 greenkeeper/nock-9.1.9 greenkeeper/nock-9.1.10 greenkeeper/nock-9.2.0 greenkeeper/nock-9.2.1 greenkeeper/nock-9.2.2 greenkeeper/nock-9.2.3 greenkeeper/nock-9.2.4 greenkeeper/nock-9.2.5 greenkeeper/nock-9.2.6 greenkeeper/nock-pin-9.1.5 greenkeeper/nodemailer-2.7.1 greenkeeper/nodemailer-2.7.2 greenkeeper/nodemailer-3.0.0 greenkeeper/nodemailer-3.0.1 greenkeeper/nodemailer-3.0.2 greenkeeper/nodemailer-3.1.0 greenkeeper/nodemailer-3.1.1 greenkeeper/nodemailer-3.1.2 greenkeeper/nodemailer-3.1.3 greenkeeper/nodemailer-3.1.4 greenkeeper/nyc-11.6.0 greenkeeper/nyc-11.7.1 greenkeeper/nyc-11.7.2 greenkeeper/nyc-11.7.3 greenkeeper/nyc-11.8.0 greenkeeper/nyc-pin-10.3.1 greenkeeper/nyc-pin-11.5.0 greenkeeper/pouchdb-adapter-http-6.1.0 greenkeeper/pouchdb-adapter-http-6.1.1 greenkeeper/pouchdb-adapter-http-6.1.2 greenkeeper/pouchdb-adapter-http-6.3.0 greenkeeper/pouchdb-adapter-http-6.3.1 greenkeeper/pouchdb-adapter-http-6.3.2 greenkeeper/pouchdb-adapter-http-6.3.3 greenkeeper/pouchdb-adapter-http-pin-6.1.1 greenkeeper/pouchdb-adapter-http-pin-6.2.0 greenkeeper/pouchdb-core-6.1.0 greenkeeper/pouchdb-core-6.3.0 greenkeeper/pouchdb-core-6.3.1 greenkeeper/pouchdb-core-6.3.2 greenkeeper/pouchdb-core-6.3.3 greenkeeper/pouchdb-core-pin-6.2.0 greenkeeper/pouchdb-errors-6.4.2 greenkeeper/pouchdb-errors-6.4.3 greenkeeper/pouchdb-mapreduce-6.3.0 greenkeeper/pouchdb-mapreduce-6.3.1 greenkeeper/pouchdb-mapreduce-6.3.2 greenkeeper/pouchdb-mapreduce-pin-6.2.0 greenkeeper/semantic-release-15.0.0 greenkeeper/semantic-release-15.0.1 greenkeeper/semantic-release-15.0.2 greenkeeper/semantic-release-15.0.3 greenkeeper/semantic-release-15.1.2 greenkeeper/semantic-release-15.1.3 greenkeeper/semantic-release-15.1.4 greenkeeper/semantic-release-15.1.5 greenkeeper/semantic-release-15.1.6 greenkeeper/semantic-release-15.1.7 greenkeeper/semantic-release-15.1.8 greenkeeper/semantic-release-15.1.11 greenkeeper/semantic-release-15.3.0 greenkeeper/semantic-release-15.4.1 greenkeeper/semantic-release-15.4.2 greenkeeper/semantic-release-15.4.3 greenkeeper/semantic-release-15.4.4 greenkeeper/semantic-release-15.5.0 greenkeeper/semantic-release-pin-6.3.5 greenkeeper/standard-11.0.1 greenkeeper/standard-pin-11.0.0 greenkeeper/tap-11.1.1 greenkeeper/tap-11.1.2 greenkeeper/tap-11.1.3 greenkeeper/tap-11.1.4 greenkeeper/tap-11.1.5 greenkeeper/tap-12.0.0 greenkeeper/tap-12.0.1 greenkeeper/tap-pin-10.3.2 greenkeeper/tap-pin-11.1.0 greenkeeper/tap-pin-11.1.1 hoodie/issue/499 master server-profile-hook wip-janl
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github chore(first-timers): configuration Oct 14, 2017
bin refactor: move routes test into integration/routes Dec 23, 2015
plugin feat: options.PouchDB Oct 15, 2016
routes style: standard Feb 19, 2018
tests style: standard Feb 19, 2018
.gitignore
.travis.yml Update .travis.yml Jan 14, 2018
LICENSE chore(LICENSE): update year Mar 24, 2017
README.md docs(README): new code coverage status URL (#233) Dec 2, 2016
how-it-works.md docs(how it works): fix example JSON Jan 24, 2017
package.json

README.md

hoodie-account-server

Account JSON API backed by PouchDB

Build Status Coverage Status Dependency Status devDependency Status

hoodie-account-server is a Hapi plugin that implements the Account JSON API routes and exposes a corresponding API at server.plugins.account.api.*, persisting user accounts using PouchDB.

Example

var Hapi = require('hapi')
var PouchDB = require('PouchDB')
var hapiAccount = require('@hoodie/account-server')

var options = {
  PouchDB: PouchDB,
  admins: {
    admin: '-pbkdf2-a2ca9d3ee921c26d2e9d61e03a0801b11b8725c6,1081b31861bd1e91611341da16c11c16a12c13718d1f712e,10'
  },
  secret: 'secret123'
})

server.register({register: hapiAccount, options: options}, function (error) {})
server.connection({ port: 8000 })
server.start(function () {
  console.log('Server running at %s', server.info.uri)
})

More

Contributing

Have a look at the Hoodie project's contribution guidelines. If you want to hang out you can join our Hoodie Community Chat.

License

Apache 2.0