authr-nedb
v1.5.6
Published
nedb adapter for authr
Downloads
13
Readme
authr-nedb
Introduction
This is the default adapter used for authr.
Usage
This module is required by authr and will be used automatically if you do not specify any database configuration options.
Note: This is an in-memory database only. As soon as your node app stops, the data will be lost. Do not use it in production.
- Install authr
npm install authr
- Set up authr
var Authr = require('authr');
var authr = new Authr(); // use the default configuration
var signup = {
username: 'some_user',
password: 'super_secure'
}
authr.signUp(signup, function(user){
console.log(user); // returns the user inserted into nedb.
});
Todo
- Refactor