ovee-auth
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Ovee Auth

Ovee Auth is a library to very simply manage users and their passwords in a Mongo DB. It salts and hashes passwords and provides a method to verify a username/password combination against the existing users.

Installation

Just run npm install --save ovee-auth.

Setup

Ovee Auth relies on Ovee DB for database access. Please see the Ovee DB documentation in order to create an OveeDB instance. This instance needs to be passed to the Ovee Auth constructor:

const OveeDb = require('ovee-db').OveeDB;
const OveeAuth = require('ovee-auth').OveeAuth;

const db = new OveeDb('mongodb://localhost:27017/ovee', 'ovee');
const oveeAUth = new OveeAuth(db);

Basic Usage

See the test cases for usage details.

Readme

Keywords

Package Sidebar

Install

npm i ovee-auth

Weekly Downloads

3

Version

0.0.4

License

MIT

Unpacked Size

52.7 kB

Total Files

23

Last publish

Collaborators

  • fchristl