jsonql-jwt

v1.4.0
jwt authentication helpers library for jsonql browser / node
jsonql jwt crypto rsa256 socket.io WebSocket

jsonql-jwt (DREPRECATED)

This package is deprecated and no longer maintain, developed have moved to @jsonql/security. Please update your dependecy accordingly. Thank you for your support.

A jwt based authentication system for jsonql, including http and socket (socket.io and ws)

This library provide several JWT authenticatioin methods used in several different jsonql modules.

Installation

$ npm i jsonql-jwt

Node command line utility

When you install this globally, you can use the command line utility. You don't usually need to do this manually, this is build into each module that require to generate the keys (i.e. jsonql-koa)

$ jsonql-jwt rsa-pem

or

$ node ./node_modules/jsonql-jwt/cmd.js -- rsa-pem

This will create a pair of RSA256 public / private keys in PEM format.

Or you can output that into a folder

$ jsonql-jwt rsa-pem --outputDir ./path/to/directory

Browser tools

This module export several different modules, when you use in node, it points to the main.js But including the dist/jsonql-jwt.js will get you a whole different tool set for browser only.

** T.B.C. **


ISC

Joel Chu

NEWBRAN LTD (c) 2019

npm i jsonql-jwt

Metadata

  • ISC
  • Whatever
  • Joel Chu
  • released 3/24/2020

Downloads

Maintainers