Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/j3k0/node-authdb
- Owner: j3k0
- Created: 2015-01-24T13:12:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-29T07:20:07.000Z (about 8 years ago)
- Last Synced: 2024-10-16T11:16:01.983Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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);
});
```