Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jsonql-jwt

joelchu9ISCdeprecated1.4.0

This package has moved to @jsonql/security https://npmjs.com/package/@jsonql/security and continue development there. Please update your dependency accordingly, thank you for your support.

jwt authentication helpers library for jsonql browser / node

jsonql, jwt, crypto, rsa256, socket.io, WebSocket

readme

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