jinwookie-users-api
v1.2.0
Published
This is an api to store users. The package itself can be used by microservices to encrypt/decrypt tokens.
Downloads
1
Readme
jinwookie-users-api
This is an api to store users. The package itself can be used by microservices to encrypt/decrypt tokens.
Install
npm install --save jinwookie-users-api
Usage
Crypto
const { crypto } = require('jinwookie-users-api');
// encrypt
const encrypted = crypto.encrypt('some stringified json');
// decrypt
const decrypted = crypto.decrypt('some token');
OAuth middleware
const { middleware } = require('jinwookie-users-api');
const { oauth } = middleware;