0.0.3 • Published 8 years ago

jwks-db v0.0.3

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
8 years ago

jwks-db

build status

Helper package to manage JWKS and persit to db. It depends on node-jose and mongodb to persist the keystore.

Installation

npm install jwks-db

Usage

const jwks = require('jwks-db');
const {MongoClient} = require('mongodb');

MongoClient.connect('mongodb://localhost:27017/msvc_user').then(db=>{
    console.log('db connected');
    jwks.connect(db).then(ks => {
        console.log(ks.toJSON());
        const all = ks.all({ kty: 'RSA' });

        console.log(all[0]);
        db.close().then(_=>{
            console.log('db closed');
        });
    });
});

Linting

npm run lint

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago