1.2.0 • Published 7 years ago

jinwookie-users-api v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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;
1.2.0

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago