Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/j3k0/node-authdb

NodeJS lib to access a Redis authentication database
https://github.com/j3k0/node-authdb

Last synced: 24 days ago
JSON representation

NodeJS lib to access a Redis authentication database

Awesome Lists containing this project

README

        

AuthDB
------

## Quick start

### Install

npm install authdb

### Example

```js
var authdb = require("authdb");

var client = authdb.createClient({
host: "127.0.0.1",
port: 6379
});

client.getAccount(token, function(err, account) {
if (err)
console.dir(err);
else
console.dir(account);
});

client.addAccount(token, account, function(err, result) {
if (err)
console.dir(err);
else
console.dir(result);
});
```