enables to accuire token for jwt authorization
- FreeBSD >= 11.1
- node >= 9.1
npmoryarn
cd keys
node gen-keys.js
or
node genkeys --pub my-public.pem --priv my-private.pem
node index.js
node index.js --config myconfig.yml
node index.js --privateKeyPath /path/to/private.key --port 3003 --tokenExpiresIn 100h
{ "token" : "header.payload.signature" }
localhost:3003/api/v1/auth-token